From fd683a656285a4709ed5361c17ef3433b401c763 Mon Sep 17 00:00:00 2001 From: hrennau Date: Wed, 22 May 2024 16:35:13 +0200 Subject: [PATCH 1/9] Fixed bug responsible for duplicated element reports (e.g. OJPRequest). --- docs/generate_tables/xco-domain.xqm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/generate_tables/xco-domain.xqm b/docs/generate_tables/xco-domain.xqm index 4e05d49f..ba9011b0 100644 --- a/docs/generate_tables/xco-domain.xqm +++ b/docs/generate_tables/xco-domain.xqm @@ -195,7 +195,7 @@ declare function dm:constructDomains($customDomains as element()?, : C o m p i l e f i l t e r d o m a i n s :) (:~ - : Compiles custom domain defintions, type "filter domain". + : Compiles custom domain definitions, type "filter domain". :) declare function dm:compileFilterDomains( $schemaDescriptors as element()*, @@ -211,15 +211,20 @@ declare function dm:compileFilterDomains( dm:filterSchemaDescriptorsByTns(., $schemaDescriptors) let $tnsMinus := $domain/content/exceptTargetNamespace/ - dm:filterSchemaDescriptorsByFiles(., $schemaDescriptors) + dm:filterSchemaDescriptorsByTns(., $schemaDescriptors) let $filesPlus := $domain/content/files/ dm:filterSchemaDescriptorsByFiles(., $schemaDescriptors) let $filesMinus := $domain/content/exceptFiles/ dm:filterSchemaDescriptorsByFiles(., $schemaDescriptors) let $selected := ($tnsPlus, $filesPlus) [not(. = ($tnsMinus, $filesMinus))] + (: Remove repeated selections (2024-05-22, hjr) :) + let $selectedDedup := + for $xsdd in $selected + group by $filePath := $xsdd/@filePath/lower-case(.) + return $xsdd[1] let $selectedOrdered := - dm:sortSchemaDescriptors($selected, $domain) + dm:sortSchemaDescriptors($selectedDedup, $domain) let $id := 'd'||$pos let $name := ($domain/@name, $id)[1] let $summary := $domain/dm:filterDomainSummary(.) From b4ad2acc78c1f395d411b0eef63698e78676ce41 Mon Sep 17 00:00:00 2001 From: hrennau Date: Wed, 22 May 2024 17:17:14 +0200 Subject: [PATCH 2/9] Fixed bug responsible for gaps in the numbering of sections. --- docs/generate_tables/xco-html.xqm | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/docs/generate_tables/xco-html.xqm b/docs/generate_tables/xco-html.xqm index 065a83c7..79d8a806 100644 --- a/docs/generate_tables/xco-html.xqm +++ b/docs/generate_tables/xco-html.xqm @@ -110,25 +110,18 @@ declare function hl:contabReport_domain( let $anno := $schema/z:annotation/z:documentation/string() let $headline := ($anno, $schemaFileName)[1] let $stypes := $schema/eu:getEdescReportSimpleTypes(.) - let $stypesTable := eu:stypesTable($stypes, $domain, $options)[$stypes] + let $stypesTable := eu:stypesTable($stypes, $domain, $options)[$stypes] let $tables := for $comp at $cnr in ( $schema/z:components/*, $schema/z:components/*//z:complexType[@z:typeID] ! u:copyNode(.) ) + [self::z:complexType, self::z:group, self::z:element] let $compNr := let $shift := if ($stypes) then 1 else 0 return $cnr + $shift return - typeswitch($comp) - case element(z:complexType) | - element(z:group) | - element(z:element) return - hl:contabReport_complexComp($comp, $compNr, $schemaNr, $domain, $options) - case element(z:simpleType) return () - case element(z:attributeGroup) return () - case element(z:attribute) return () - default return error('Unexpected component, elem name: '||name($comp)) + hl:contabReport_complexComp($comp, $compNr, $schemaNr, $domain, $options) return
{

{$schemaNr}. {$headline}

, From 6f4dad1035caa0c42d5ad735f9627d6da82cade1 Mon Sep 17 00:00:00 2001 From: hrennau Date: Wed, 22 May 2024 18:27:23 +0200 Subject: [PATCH 3/9] Fixed bug responsible for escaped characters in Javascript. --- docs/generate_tables/xco-html.xqm | 12 ++++++------ docs/generate_tables/xco-util.xqm | 32 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/docs/generate_tables/xco-html.xqm b/docs/generate_tables/xco-html.xqm index 79d8a806..707adcef 100644 --- a/docs/generate_tables/xco-html.xqm +++ b/docs/generate_tables/xco-html.xqm @@ -149,7 +149,7 @@ declare function hl:contabReport_domain( let $_WRITE := let $reportPath := dm:getReportPath('contab', $domain, $options) where ($reportPath) - return u:writeXmlDoc($reportPath, $htmlReport) + return u:writeXhtmlDoc($reportPath, $htmlReport) return $htmlReport }; @@ -242,11 +242,11 @@ declare function hl:contabReport_head(