Search found 22 matches

by DanOvergaard
Tue Feb 20, 2024 12:48 pm
Forum: XSLT and FOP
Topic: Performance issue when using “following-sibling“
Replies: 1
Views: 278

Performance issue when using “following-sibling“

Hi, I am facing a performance issue with a XSLT test using “following-sibling“ and I would like to know if anybody has a suggestion to optimize the test. The problem is that the test-time increase exponential with the number of lines and some of the XML-files have 80.000 or more lines. I have attach...
by DanOvergaard
Mon Feb 20, 2023 9:49 am
Forum: XSLT and FOP
Topic: SCH: initialize a variable during built to XSLT
Replies: 4
Views: 923

Re: SCH: initialize a variable during built to XSLT

Hi Martin, Thanks for your reply Unfortunately, it didn't import the values from the external XML file during the process from SCH to XSL. I am trying to get the SCH file to import the values during build and insert the result in the final XSL file, so the variable "PartyLegalID" = "D...
by DanOvergaard
Mon Feb 13, 2023 10:47 am
Forum: XSLT and FOP
Topic: SCH: initialize a variable during built to XSLT
Replies: 4
Views: 923

Re: SCH: initialize a variable during built to XSLT

Hi Octavian, I look for a way to initialize the variable “PartyLegalID” during the schema schematron build process, with the values from the PartyLegalID.xml (See below). So I try to implement something like In the sch-file I have an empty variable called “PartyLegalID” During build, the variable sh...
by DanOvergaard
Fri Feb 10, 2023 3:48 pm
Forum: XSLT and FOP
Topic: SCH: initialize a variable during built to XSLT
Replies: 4
Views: 923

SCH: initialize a variable during built to XSLT

Hi, We have a process where our XSLT's are built by a Schema Schematron process and I need to initialize a variable during built. Is there away to "tell" the process that it should execute an XSL Texpression, not just implement it in the final XLST? I have tried different approvers to get ...
by DanOvergaard
Tue Dec 13, 2022 3:50 pm
Forum: XSLT and FOP
Topic: Test seems to catch more than the template match should select
Replies: 6
Views: 1222

Re: Test seems to catch more than the template match should select

Hi Martin, I will put your suggestion to test during the week – Thanks My “for-each-group” solution has run into a problem which I hope you can help with. The solution I found is not working in the production environment, as the more than 100 different calls are done with a “too” specific “Context” ...
by DanOvergaard
Mon Dec 12, 2022 5:16 pm
Forum: XSLT and FOP
Topic: Test seems to catch more than the template match should select
Replies: 6
Views: 1222

Re: Test seems to catch more than the template match should select

Hi, Appreciate your help but unfortunately, your suggestion didn't work (or I implemented it wrong) as it still failed if there was a "languageID" matching outside the "Description" context. I found the solution listed below, but is there a way to translate this to "Schematr...
by DanOvergaard
Fri Dec 09, 2022 3:28 pm
Forum: XSLT and FOP
Topic: Test seems to catch more than the template match should select
Replies: 6
Views: 1222

Re: Test seems to catch more than the template match should select

Hi Radu, Thanks for your feedback - your explanation makes sense. Unfortunate, your suggestion didn't solve my problem. What I want is to check if any of the "cac:Description" have the same "languageID". Do you have any suggestions ? This should not fail <cbc:Description language...
by DanOvergaard
Thu Dec 08, 2022 3:04 pm
Forum: XSLT and FOP
Topic: Test seems to catch more than the template match should select
Replies: 6
Views: 1222

Test seems to catch more than the template match should select

Hi, I can't understand why the check below fails, as I think the template only "returns" the 2 "cbc:Description" nodes with the context (match) selected, but is seems that is also catch the node "cbc:Name". The test should catch any nodes with the same name that has the...
by DanOvergaard
Wed Nov 23, 2022 6:24 am
Forum: XSLT and FOP
Topic: A sequence of more than one item is not allowed
Replies: 2
Views: 1337

A sequence of more than one item is not allowed

Hi, After we have changed from XSLT 1.0 to 2.0 I have encountered a problem with a test that now return “A sequence of more than one item is not allowed as the first argument of starts-with()” I hope some of you can guide me to the best way to solve the problem. The XSLT is generated from this schem...
by DanOvergaard
Mon Sep 12, 2022 1:44 pm
Forum: XSLT and FOP
Topic: Check for duplicates attribute value
Replies: 2
Views: 1091

Re: Check for duplicates attribute value

Hi Martin, Thanks for your feedback - I used "for-each-group" and solved the problem :D It's a "sch:schema" that is the source that builds the XSLT validation, but I couldn't find a solution to do this test - Actually I find that more complex validations is hard to solved in a sc...
by DanOvergaard
Tue Sep 06, 2022 5:42 pm
Forum: XSLT and FOP
Topic: Check for duplicates attribute value
Replies: 2
Views: 1091

Check for duplicates attribute value

Hi, Is there a validation in Xslt 2.0 that can test for duplicates in an attribute If would like to catch that there a two “DK” languageID’s in the XML below <cac:notes> <cbc:note languagesID=“DK”>test</cbc:note> <cbc:note languagesID=“SE”>test</cbc:note> <cbc:note languagesID=“UK>test</cbc:note> <c...
by DanOvergaard
Mon Jan 24, 2022 10:33 am
Forum: XML Schemas
Topic: Logical test in Schematron
Replies: 4
Views: 1966

Re: Logical test in Schematron

Hi Octavian, Thanks for your feedback - It gave my the hint to get it to work. I couldn't combined Schematron with XSL but a "clean" XSL variable definition did it <xsl:variable name="AlteredPayableSum"> <xsl:choose> <xsl:when test="$PayableSum = -.0">0</xsl:when> <xsl:...
by DanOvergaard
Tue Jan 11, 2022 10:47 am
Forum: XML Schemas
Topic: Logical test in Schematron
Replies: 4
Views: 1966

Re: Logical test in Schematron

Hi Octavian, Thanks for your solution - it seams to work, but after conversion to XLST I get the following syntax error: Error in expression if ($PayableSum = -0) then 0 else $PayableSum: Unknown system function: if Is that because the transformation to XSLT enforce XSLT 1.0 ? If so is there a schem...
by DanOvergaard
Fri Jan 07, 2022 7:02 pm
Forum: XML Schemas
Topic: Logical test in Schematron
Replies: 4
Views: 1966

Logical test in Schematron

Hi I have a task to design a validation using schematron, but I can’t figure if it’s possible. The validation is a two parts validation as following: First, I need to ensure that variable 1 is converted to 0 if the original value is -0 Second, I need check if the value in the two variables are the s...
by DanOvergaard
Thu Aug 12, 2021 7:59 am
Forum: XSLT and FOP
Topic: Alternative to using local-name()
Replies: 2
Views: 1568

Re: Alternative to using local-name()

Hi Octavian, Thank for your answer I had tried <xsl:value-of select="$SupplierSeller/cbc:ID"/> but it didn’t return any value and that was driving me crazy. So, I used local-Name() – go a value, but then the post-process failed (Sorry for not being 100% clear in the problem description) I ...
by DanOvergaard
Fri Aug 06, 2021 4:41 pm
Forum: XSLT and FOP
Topic: Alternative to using local-name()
Replies: 2
Views: 1568

Alternative to using local-name()

Hi Is there a way to get a value on root level not using "local-name()"? My problem is that my xslt are process by an engine that do not support "local-name()" (Don’t ask me why :shock: ) I have loaded the file into a variable and I need to get the value cbc:ID on root level, but...
by DanOvergaard
Fri Jul 02, 2021 3:41 pm
Forum: XML Schemas
Topic: Schematron: Support for validation
Replies: 5
Views: 2617

Re: Schematron: Support for validation

Hi Octavian,

Sorry for my late reply, but I have been assigned to other more pressing issues :-)

I will come back with some simplified examples, but not until late August.

So shall I close the case and create a new at that time or keep this open ?


Best regards
Dan
by DanOvergaard
Mon Jun 14, 2021 11:50 am
Forum: XML Schemas
Topic: Schematron: Support for validation
Replies: 5
Views: 2617

Re: Schematron: Support for validation

Hi Octavian, Thanks for your feedback 😊 My challenge are that I don’t know how to solve the problem in the Schematron file – The file that is used to build the XSL-fil for validating. I need to find a logic that handle The problem with SAXON vs .Net (not version specific), but that .Net see “-0 = 0”...
by DanOvergaard
Wed Jun 09, 2021 3:58 pm
Forum: XML Schemas
Topic: Schematron: Support for validation
Replies: 5
Views: 2617

Schematron: Support for validation

Hi, I am not 100% sure that this is the right forum but I hope to find help My problem is that an addition of multiple totals end up in a very tiny number (-1.8189894035458565E-12) rather than 0 (In XSLT 1.0 every number is treated as double and when adding decimal, numbers rounding occurs). I then ...
by DanOvergaard
Fri Apr 09, 2021 9:21 am
Forum: Common Problems
Topic: SSH to GIT not working
Replies: 3
Views: 1421

Re: SSH to GIT not working

Hi, Thanks for you reply, but the problem was that Oxygen couldn't find the private key. The solution was to - Rename the private key to "id_rsa" (Default name) - Found in C:\Users\"User"\.ssh - Set the $HOME variable to: C:\Users\"User" I am not sure the setting the $H...
by DanOvergaard
Thu Apr 08, 2021 12:59 pm
Forum: Common Problems
Topic: SSH to GIT not working
Replies: 3
Views: 1421

SSH to GIT not working

Hi,

I have tried to setup a connection to GITLAB by using the GIT Client and SSH, but it's not working - Oxygen Editor keeps asking for a SSH Passphrase

I have it all to run via TortoiseGit, so the configuration on GIT is working

PLease help