38,833 questions
0 votes
1 answer
69 views
How to split the book in the chapters format
In the below example we are trying split the book in the chapters format. Can anyone help. INPUT XML: book.xml <?xml version="1.0" encoding="UTF-8"?> <book> <...
0 votes
1 answer
58 views
How to lookup multiple values of a key in a map in xslt 3.0
I am new to XSLT and I am trying to simply print one of the values of a key in XSLT3.0. Please help me with this. My XML: <AggregatedData> <wd:Report_Data xmlns:wd="urn:com.workday....
0 votes
1 answer
92 views
Prevent a path being added a UDF from a XLAM used in an Excel Template
I have a XLAM file that I installed through the Options -> AddIn Manager and activated in Excel. I also have a template (xslt). In this template I reference a UDF from the AddIn. This works fine. ...
Advice
1 vote
3 replies
75 views
Split single XML document into multiple XML documents
I have a task to split an XML that I'm receiving using XSLT. The input XML is formatted as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <...
1 vote
1 answer
101 views
How to validate XML document against the XML schema using the XmlPrime xslt command-line?
I am starting with Peppol Invoices based on XML. What I need is to be able to locally validate the XML of the invoice document. (I know that on-line validators do exist.) The next step will be the ...
2 votes
2 answers
185 views
What is the biggest number that MSXML can handle in XSLT?
When doing some numerical calculations in XSL templates I stumbled over the fact that a value of 3.600.000.000 which represents the number of microseconds in an hour can be represented in MSXML v6 ...
2 votes
1 answer
67 views
XSLT using count to add s to the string
Is there a better way to do this I am adding the s if the count is not 1 and if it has the 1 I dont add that line. <xsl:choose> <xsl:when test=".//Count = 1"> <li&...
7 votes
3 answers
185 views
How can I pass a list of elements as a template's param to work on each on them with a for-each approach in XSLT 1.0?
I am working with XSLT 1.0 through a Java project, and I am unable to update to 2.0. I am attempting to write a Parent template that should call within it a Child template. I wish for the Parent ...
1 vote
3 answers
128 views
What is an example of an XML file merge using Saxon and an XSLT 3.0 stylesheet?
I need to merge Saxon Documentation - merge one node from the source XML file merge.xml into the file merge-test.xml, positioning the node in between two other nodes in the output file output.xml. No ...
1 vote
2 answers
65 views
Sort entries in an XML file using Saxon 12.9 and an XSLT 3.0 stylesheet
I'm trying to sort entries in an XML file using Saxon, Saxon:sort and an XSLT 3.0 stylesheet. I need to sort the nodes by the date in the <blogger:filename> field, which has the date as part of ...
2 votes
1 answer
68 views
Remove an XML node with Saxon using an XSLT 3.0 stylesheet
What's a simple example of removing a node from an XML file using Saxon 12.9 and an XSLT 3.0 stylesheet? I've got an XML export from Blogger, and I'm puzzled on how to remove just the COMMENT entries ...
-1 votes
1 answer
75 views
XSLT Transformation is not working as expected
Input XML <tns:ipartycredit> <ns3:crPtyRole>ACWINS</ns3:crPtyRole> <ns3:crPtyRoleIndicator>R</ns3:crPtyRoleIndicator> <ns3:crPtyInformationTag>57</...
1 vote
1 answer
132 views
XSLT Reset variable [closed]
I have this variable showHeader that I am using to display a header but I only want it to display one time. After it is displayed I want to set it to false but I am not sure how to do that I only want ...
1 vote
2 answers
166 views
xsl:try / xsl:catch - how to abort after the 10th error?
We are processing XML files of the following form with a burst-streamed XSLT-Transformation. Each Dok is independent of the others and a dynamic error in transforming one <Dok>should not ...
1 vote
1 answer
105 views
xslt data is repeating
I am trying to understand why my data is repeating Clinical Content in the output. In the xslt I have a for-each select="//EmailMessageModel so it shouldnt repeat that data because it is in only ...