diff --git a/src/html-model-glossary/glossary.xsl b/src/html-model-glossary/glossary.xsl index d1acf90..97a541b 100644 --- a/src/html-model-glossary/glossary.xsl +++ b/src/html-model-glossary/glossary.xsl @@ -221,17 +221,24 @@ if (f:getElementByIdRef(./target/@xmi:idref, $root)/@name) then f:getElementByIdRef(./target/@xmi:idref, $root)/@name else - if ($generateReusedConceptsGlossary) then - fn:concat(./target/model/@name, ' (external)') + if (fn:substring-before(./target/model/@name, ':') = $internalModelPrefixesList) then + ./target/model/@name else - ()"/> + if ($generateReusedConceptsGlossary) then + fn:concat(./target/model/@name, ' (external)') + else + ()" + /> @@ -271,19 +278,27 @@ if (f:getElementByIdRef($connectorsWithSameName/target/@xmi:idref, $root)/@name) then f:getElementByIdRef($connectorsWithSameName/target/@xmi:idref, $root)/@name else - if ($generateReusedConceptsGlossary) then - fn:concat($connectorsWithSameName/target/model/@name, ' (external)') + if (fn:substring-before($connectorsWithSameName/target/model/@name, ':') = $internalModelPrefixesList) then + $connectorsWithSameName/target/model/@name else - ()"/> + if ($generateReusedConceptsGlossary) then + fn:concat($connectorsWithSameName/target/model/@name, ' (external)') + else + ()" + /> + if ($generateReusedConceptsGlossary) then + fn:concat($connectorsWithSameName/source/model/@name, ' (external)') + else + ()" + /> diff --git a/test/external-concepts-filters-testing/external-filters-false/eOrdering_glossary.html b/test/external-concepts-filters-testing/external-filters-false/eOrdering_glossary.html index 81158b3..ef51495 100644 --- a/test/external-concepts-filters-testing/external-filters-false/eOrdering_glossary.html +++ b/test/external-concepts-filters-testing/external-filters-false/eOrdering_glossary.html @@ -278,27 +278,27 @@

Predicates (object p The monetary amount to which the multiplier factor is applied in calculating the amount of this allowance or charge. -

+ epo-ord:AllowanceChargeInformation -> epo:MonetaryValue [0..1]
epo-ord:TaxInformation -> epo:MonetaryValue [0..1]
epo:refersToProject - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:Project [0..1] epo:specifiesBuyer - epo-ord:Order -> [1] + epo-ord:Order -> epo:Buyer [1] epo:specifiesDespatcher - epo-ord:Order -> [0..1] + epo-ord:Order -> epo-ful:Despatcher [0..1] epo:specifiesSeller - epo-ord:Order -> epo-ord:Seller [1]

+ epo-ord:Order -> epo-ord:Seller [1]
epo-cat:Catalogue -> epo-ord:Seller [0..*]
epo-cat:hasAmount @@ -309,74 +309,74 @@

Predicates (object p WG approval 26/07/2022 -

+ epo-ord:AllowanceChargeInformation -> epo:MonetaryValue [1]
epo-ord:TaxInformation -> epo:MonetaryValue [0..1]
epo-cat:hasPrice - epo-ord:OrderLine -> [0..1] + epo-ord:OrderLine -> epo-cat:Price [0..1] epo-cat:hasQuantity - epo-ord:OrderLine -> [1] + epo-ord:OrderLine -> epo:Quantity [1] epo-cat:hasTaxCategory - epo-ord:TaxInformation -> [0..1] + epo-cat:hasTaxScheme - epo-ord:TaxInformation -> [0..1] + epo-cat:specifiesChargeInformation - epo-ord:Order -> [0..*] + epo-ord:Order -> epo-cat:ChargeInformation [0..*] epo-ful:agreedBySeller - -> epo-ord:Seller [1..*] + epo-ful:ShipmentAgreement -> epo-ord:Seller [1..*] epo-ful:hasAllowanceChargeReason https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5189/ https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7161/ - epo-ord:AllowanceChargeInformation -> [0..1] + epo-ful:hasTrackingID - epo-ord:DeliveryInformation -> [0..1] + epo-ful:refersToDeliveryInformation - -> epo-ord:DeliveryInformation [1] + epo-ful:ShipmentInformation -> epo-ord:DeliveryInformation [1] epo-ful:refersToOrder - -> epo-ord:Order [0..1] + epo-ful:DespatchAdvice -> epo-ord:Order [0..1] epo-ful:refersToOrderLine - -> epo-ord:OrderLine [0..1] + epo-ful:DespatchLine -> epo-ord:OrderLine [0..1] epo-ful:specifiesConsignee - -> epo-ord:Consignee [1..*] + epo-ful:DespatchAdvice -> epo-ord:Consignee [1..*] epo-ful:specifiesOriginator - -> epo-ord:Originator [0..*] + epo-ful:DespatchAdvice -> epo-ord:Originator [0..*] epo-ord:comprisesOrderLine @@ -396,7 +396,7 @@

Predicates (object p epo-ord:concernsContract - epo-ord:ContractInformation -> [1] + epo-ord:ContractInformation -> epo:Contract [1] epo-ord:concernsOriginator @@ -406,7 +406,7 @@

Predicates (object p epo-ord:concernsOriginatorRequest - epo-ord:OriginatorInformation -> [0..1] + epo-ord:OriginatorInformation -> epo:OriginatorRequest [0..1] epo-ord:hasAcceptanceStatus @@ -416,62 +416,62 @@

Predicates (object p epo-ord:hasAmountDueForPayment - epo-ord:Order -> [1] + epo-ord:Order -> epo:MonetaryValue [1] epo-ord:hasDeliveryPeriod -

+ epo-ord:DeliveryInformation -> epo:Period [0..1]
epo-ord:OrderResponseInformation -> epo:Period [0..1]
epo-ord:hasPrepaidAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasPriceDiscountInformation - -> epo-ord:AllowanceInformation [0..1] + epo-cat:Price -> epo-ord:AllowanceInformation [0..1] epo-ord:hasRoundingAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTaxInformation - epo-ord:AllowanceChargeInformation -> epo-ord:TaxInformation [0..1]


+ epo-ord:AllowanceChargeInformation -> epo-ord:TaxInformation [0..1]
epo-cat:Item -> epo-ord:TaxInformation [0..*]
epo:Contract -> epo-ord:TaxInformation [0..1]
epo-ord:hasTotalAllowanceAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalChargeAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalLineAmount - epo-ord:Order -> [1] + epo-ord:Order -> epo:MonetaryValue [1] epo-ord:hasTotalTaxExclusiveAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalTaxInclusiveAmount - epo-ord:Order -> [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:implementsContract - epo-ord:OrderResponse -> [0..1] + epo-ord:OrderResponse -> epo:Contract [0..1] epo-ord:isSpecificToOrderLine @@ -479,7 +479,7 @@

Predicates (object p Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. - epo-ord:AllowanceInformation -> epo-ord:OrderLine [0..*]
epo-ord:ContractInformation -> epo-ord:OrderLine [0..*]
epo-ord:DeliveryInformation -> epo-ord:OrderLine [0..*]

epo-ord:OriginatorInformation -> epo-ord:OrderLine [0..*]
+ epo-ord:AllowanceInformation -> epo-ord:OrderLine [0..*]
epo-ord:ContractInformation -> epo-ord:OrderLine [0..*]
epo-ord:DeliveryInformation -> epo-ord:OrderLine [0..*]
epo-cat:ChargeInformation -> epo-ord:OrderLine [0..*]
epo-ord:OriginatorInformation -> epo-ord:OrderLine [0..*]
epo-ord:isSpecificToOrderResponseLine @@ -503,7 +503,7 @@

Predicates (object p If an order refers to multiple catalogues then all these catalogues ideally are subordinated to the same contract. Some countries however may allow multiple contracts per order (i.e Italy). - epo-ord:Order -> [0..*] + epo-ord:Order -> epo-cat:Catalogue [0..*] epo-ord:refersToCatalogueLine @@ -511,7 +511,7 @@

Predicates (object p Additional Information: The reference to the catalogue line is for information only, to trace the source of the information provided in the order line. - epo-ord:OrderLine -> [0..1] + epo-ord:OrderLine -> epo-cat:CatalogueLine [0..1] epo-ord:specifiesAllowanceInformation @@ -521,7 +521,7 @@

Predicates (object p epo-ord:specifiesBuyer - epo-ord:OrderResponse -> [0..1] + epo-ord:OrderResponse -> epo:Buyer [0..1] epo-ord:specifiesContractInformation @@ -532,7 +532,7 @@

Predicates (object p epo-ord:specifiesDeliveryAgreementLocation - epo-ord:DeliveryAgreement -> [0..1] + epo-ord:specifiesDeliveryInformation @@ -557,7 +557,7 @@

Predicates (object p epo-ord:specifiesPlaceOfDelivery - epo-ord:DeliveryInformation -> [0..1] + epo-ord:specifiesSeller diff --git a/test/external-concepts-filters-testing/external-filters-true/eOrdering_glossary.html b/test/external-concepts-filters-testing/external-filters-true/eOrdering_glossary.html index 150d001..92034ee 100644 --- a/test/external-concepts-filters-testing/external-filters-true/eOrdering_glossary.html +++ b/test/external-concepts-filters-testing/external-filters-true/eOrdering_glossary.html @@ -297,27 +297,27 @@

Predicates (object p The monetary amount to which the multiplier factor is applied in calculating the amount of this allowance or charge. - epo-ord:AllowanceChargeInformation -> epo:MonetaryValue (external) [0..1]
epo-ord:TaxInformation -> epo:MonetaryValue (external) [0..1]
+ epo-ord:AllowanceChargeInformation -> epo:MonetaryValue [0..1]
epo-ord:TaxInformation -> epo:MonetaryValue [0..1]
epo:refersToProject - epo-ord:Order -> epo:Project (external) [0..1] + epo-ord:Order -> epo:Project [0..1] epo:specifiesBuyer - epo-ord:Order -> epo:Buyer (external) [1] + epo-ord:Order -> epo:Buyer [1] epo:specifiesDespatcher - epo-ord:Order -> epo-ful:Despatcher (external) [0..1] + epo-ord:Order -> epo-ful:Despatcher [0..1] epo:specifiesSeller - epo-ord:Order -> epo-ord:Seller [1]
epo-cat:Catalogue (external) -> epo-ord:Seller [0..*]
+ epo-ord:Order -> epo-ord:Seller [1]
epo-cat:Catalogue -> epo-ord:Seller [0..*]
epo-cat:hasAmount @@ -328,17 +328,17 @@

Predicates (object p WG approval 26/07/2022 - epo-ord:AllowanceChargeInformation -> epo:MonetaryValue (external) [1]
epo-ord:TaxInformation -> epo:MonetaryValue (external) [0..1]
+ epo-ord:AllowanceChargeInformation -> epo:MonetaryValue [1]
epo-ord:TaxInformation -> epo:MonetaryValue [0..1]
epo-cat:hasPrice - epo-ord:OrderLine -> epo-cat:Price (external) [0..1] + epo-ord:OrderLine -> epo-cat:Price [0..1] epo-cat:hasQuantity - epo-ord:OrderLine -> epo:Quantity (external) [1] + epo-ord:OrderLine -> epo:Quantity [1] epo-cat:hasTaxCategory @@ -353,12 +353,12 @@

Predicates (object p epo-cat:specifiesChargeInformation - epo-ord:Order -> epo-cat:ChargeInformation (external) [0..*] + epo-ord:Order -> epo-cat:ChargeInformation [0..*] epo-ful:agreedBySeller - epo-ful:ShipmentAgreement (external) -> epo-ord:Seller [1..*] + epo-ful:ShipmentAgreement -> epo-ord:Seller [1..*] epo-ful:hasAllowanceChargeReason @@ -375,27 +375,27 @@

Predicates (object p epo-ful:refersToDeliveryInformation - epo-ful:ShipmentInformation (external) -> epo-ord:DeliveryInformation [1] + epo-ful:ShipmentInformation -> epo-ord:DeliveryInformation [1] epo-ful:refersToOrder - epo-ful:DespatchAdvice (external) -> epo-ord:Order [0..1] + epo-ful:DespatchAdvice -> epo-ord:Order [0..1] epo-ful:refersToOrderLine - epo-ful:DespatchLine (external) -> epo-ord:OrderLine [0..1] + epo-ful:DespatchLine -> epo-ord:OrderLine [0..1] epo-ful:specifiesConsignee - epo-ful:DespatchAdvice (external) -> epo-ord:Consignee [1..*] + epo-ful:DespatchAdvice -> epo-ord:Consignee [1..*] epo-ful:specifiesOriginator - epo-ful:DespatchAdvice (external) -> epo-ord:Originator [0..*] + epo-ful:DespatchAdvice -> epo-ord:Originator [0..*] epo-ord:comprisesOrderLine @@ -415,7 +415,7 @@

Predicates (object p epo-ord:concernsContract - epo-ord:ContractInformation -> epo:Contract (external) [1] + epo-ord:ContractInformation -> epo:Contract [1] epo-ord:concernsOriginator @@ -425,7 +425,7 @@

Predicates (object p epo-ord:concernsOriginatorRequest - epo-ord:OriginatorInformation -> epo:OriginatorRequest (external) [0..1] + epo-ord:OriginatorInformation -> epo:OriginatorRequest [0..1] epo-ord:hasAcceptanceStatus @@ -435,62 +435,62 @@

Predicates (object p epo-ord:hasAmountDueForPayment - epo-ord:Order -> epo:MonetaryValue (external) [1] + epo-ord:Order -> epo:MonetaryValue [1] epo-ord:hasDeliveryPeriod - epo-ord:DeliveryInformation -> epo:Period (external) [0..1]
epo-ord:OrderResponseInformation -> epo:Period (external) [0..1]
+ epo-ord:DeliveryInformation -> epo:Period [0..1]
epo-ord:OrderResponseInformation -> epo:Period [0..1]
epo-ord:hasPrepaidAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasPriceDiscountInformation - epo-cat:Price (external) -> epo-ord:AllowanceInformation [0..1] + epo-cat:Price -> epo-ord:AllowanceInformation [0..1] epo-ord:hasRoundingAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTaxInformation - epo-ord:AllowanceChargeInformation -> epo-ord:TaxInformation [0..1]
epo-cat:Item (external) -> epo-ord:TaxInformation [0..*]
epo:Contract (external) -> epo-ord:TaxInformation [0..1]
+ epo-ord:AllowanceChargeInformation -> epo-ord:TaxInformation [0..1]
epo-cat:Item -> epo-ord:TaxInformation [0..*]
epo:Contract -> epo-ord:TaxInformation [0..1]
epo-ord:hasTotalAllowanceAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalChargeAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalLineAmount - epo-ord:Order -> epo:MonetaryValue (external) [1] + epo-ord:Order -> epo:MonetaryValue [1] epo-ord:hasTotalTaxExclusiveAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:hasTotalTaxInclusiveAmount - epo-ord:Order -> epo:MonetaryValue (external) [0..1] + epo-ord:Order -> epo:MonetaryValue [0..1] epo-ord:implementsContract - epo-ord:OrderResponse -> epo:Contract (external) [0..1] + epo-ord:OrderResponse -> epo:Contract [0..1] epo-ord:isSpecificToOrderLine @@ -498,7 +498,7 @@

Predicates (object p Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. Information that is particular to one or multiple Order Lines. - epo-ord:AllowanceInformation -> epo-ord:OrderLine [0..*]
epo-ord:ContractInformation -> epo-ord:OrderLine [0..*]
epo-ord:DeliveryInformation -> epo-ord:OrderLine [0..*]
epo-cat:ChargeInformation (external) -> epo-ord:OrderLine [0..*]
epo-ord:OriginatorInformation -> epo-ord:OrderLine [0..*]
+ epo-ord:AllowanceInformation -> epo-ord:OrderLine [0..*]
epo-ord:ContractInformation -> epo-ord:OrderLine [0..*]
epo-ord:DeliveryInformation -> epo-ord:OrderLine [0..*]
epo-cat:ChargeInformation -> epo-ord:OrderLine [0..*]
epo-ord:OriginatorInformation -> epo-ord:OrderLine [0..*]
epo-ord:isSpecificToOrderResponseLine @@ -522,7 +522,7 @@

Predicates (object p If an order refers to multiple catalogues then all these catalogues ideally are subordinated to the same contract. Some countries however may allow multiple contracts per order (i.e Italy). - epo-ord:Order -> epo-cat:Catalogue (external) [0..*] + epo-ord:Order -> epo-cat:Catalogue [0..*] epo-ord:refersToCatalogueLine @@ -530,7 +530,7 @@

Predicates (object p Additional Information: The reference to the catalogue line is for information only, to trace the source of the information provided in the order line. - epo-ord:OrderLine -> epo-cat:CatalogueLine (external) [0..1] + epo-ord:OrderLine -> epo-cat:CatalogueLine [0..1] epo-ord:specifiesAllowanceInformation @@ -540,7 +540,7 @@

Predicates (object p epo-ord:specifiesBuyer - epo-ord:OrderResponse -> epo:Buyer (external) [0..1] + epo-ord:OrderResponse -> epo:Buyer [0..1] epo-ord:specifiesContractInformation