Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
31 views

I used to display error messages from a xml file directly on MS Explorer web browser and format the output using a xslt file. However, this process seems to be eliminated on MS Edge. I used the ...
Jlong101's user avatar
0 votes
1 answer
129 views

I want to transform Indesign table XML converts to HTML but I am not getting the correct output and need to handle dynamically aid:crows and aid:ccols. can anyone please suggest the correct table HTML ...
Sam's user avatar
  • 872
0 votes
1 answer
79 views

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> <...
Umaima Fatima's user avatar
0 votes
1 answer
65 views

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....
manoj's user avatar
  • 11
0 votes
1 answer
96 views

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. ...
Stephan's user avatar
  • 665
Advice
1 vote
3 replies
78 views

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"?> <...
user3523332's user avatar
1 vote
1 answer
120 views

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 ...
pepr's user avatar
  • 21.1k
2 votes
2 answers
192 views

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 ...
blerontin's user avatar
  • 3,207
2 votes
1 answer
72 views

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&...
Jefferson's user avatar
  • 121
7 votes
3 answers
187 views

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 ...
Marco Flavio Farella's user avatar
1 vote
3 answers
130 views

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 ...
BlueDogRanch's user avatar
1 vote
2 answers
72 views

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 ...
BlueDogRanch's user avatar
2 votes
1 answer
71 views

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 ...
BlueDogRanch's user avatar
-1 votes
1 answer
78 views

Input XML <tns:ipartycredit> <ns3:crPtyRole>ACWINS</ns3:crPtyRole> <ns3:crPtyRoleIndicator>R</ns3:crPtyRoleIndicator> <ns3:crPtyInformationTag>57</...
user11303439's user avatar
1 vote
1 answer
134 views

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 ...
Jefferson's user avatar
  • 121
1 vote
2 answers
168 views

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 ...
Reto's user avatar
  • 3,163
1 vote
1 answer
107 views

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 ...
Jefferson's user avatar
  • 121
1 vote
2 answers
73 views

See the XML code of a table below. My task is to add two attributes (NAMEST and NAMEEND) to every ENTRY element which has one or more consecutive following ENTRY elements with the text "##colspan#...
Hermund's user avatar
  • 15
0 votes
1 answer
81 views

I am trying to use XSLT in my application(OIC) where based on input structure, I have to construct an output file which filters the records based on 2 elements. Input structure: <?xml version='1.0' ...
kumarb's user avatar
  • 497
1 vote
3 answers
135 views

There is an outdated section within the data, and I need to replace it. The replacement data is static and needs to go in place of existing Nodes. <headerNode1> <headerNode2> <...
Maggie's user avatar
  • 11
-1 votes
1 answer
75 views

I have nested API response where terminateDate can have value and empty. Conditions: Check the array if any one record found that terminateDate falls within 15 days w.r.t current date then map that ...
Arun M's user avatar
  • 1
1 vote
2 answers
129 views

I am writing a program, that will divide my students into groups. Lets say the groups are A, B, C and D. In each group there can be only so many students. Those numbers I have in a global variable: &...
trinarSK's user avatar
-3 votes
1 answer
88 views

I need to convert an XML file to another format. A system creates an XML log with entries like this, I now know that the format was probably selected to allow extension without changing the schema: &...
AndersG's user avatar
  • 151
0 votes
2 answers
77 views

Using Saxon 12.8, I can compile an XML source to a TEX file. I am using the XSL file for Latex from TEIC/Stylesheets to do this. My XML source however has some math that will need the amsmath package. ...
SO Stinks's user avatar
  • 3,475
1 vote
0 answers
127 views

In the event of an XSLT error (where it lacks a leading '<', for instance), the compileFromString method raises a SaxonApiException. The exception message is fine for v12.5 but not for v12.8 (and ...
Jerome Guillaume's user avatar
0 votes
2 answers
103 views

See the XML code of a table below. My task is to add an attribute (MOREROWS) to every ENTRY element which has one or more consecutive following rows with the text "##rowspan##" in the ENTRY ...
Hermund's user avatar
  • 15
0 votes
1 answer
68 views

In @xlink:href contains 10.1513/AnnalsATS.202508-879ED text will come different types of doi numberes in many file, How to replace it in regex mode to match the below condition. Please anyone help on ...
Karthick's user avatar
2 votes
2 answers
78 views

I have a large sequence of maps: 15,000 rows of 85 columns, initially created from sql: <xsl:variable name="original-sequence" select="sql:prepared-query($connection, $sql)()"/&...
lschult2's user avatar
  • 450
0 votes
1 answer
59 views

I have a pipeline. XSL, which should run multiple XSLT transformations on one input, I want to pass some parameters to the child XSLs used in the pipeline.xsl Problem: The parameters are not passed to ...
Jason's user avatar
  • 45
0 votes
2 answers
77 views

I have noticed this xpath misleading behavior problem, for this expression: elemA[ not(elemB) ] it has two meanings: 1. yes show all elemA filtered all childs elemB. eg: select all elements but ...
mr.tee's user avatar
  • 43
3 votes
1 answer
102 views

I am trying to import a legacy configuration file into SQL Server table that is in XML that also has an XSLT transform file. I have imported the XML config using .nodes and XPath syntax with a lot of ...
iFreeman72's user avatar
1 vote
1 answer
72 views

I am not sure if this is possible with XSLT but I am trying to get the below XML into a format where it is name, title, date (if same date then only get date once), last value of In time (might not be ...
BryanG's user avatar
  • 29
0 votes
2 answers
107 views

Is it possible to execute an XML transformation without a .xlst file, but to load that file from a XML stylesheet link embedded in the XML file? Currently I am loading the transformation from the file ...
Christoph Brückmann's user avatar
0 votes
0 answers
50 views

When running the below XSLT <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xquery="http://www.w3.org/2005/xpath-functions"...
paulhr's user avatar
  • 389
0 votes
0 answers
96 views

Have interesting question and its also a problem for me now. One of my customer has XML file with XSLT file. They were using edge with ie compatible mode to see these files. Because modern browsers ...
Cem's user avatar
  • 75
1 vote
1 answer
54 views

I can use the XSLT document() function to access external resources, so long as any authentication can be passed via the URL, e.g. https://api.domain.com/call_x/id?api-key=abcd1234 However if the ...
Feargal Hogan's user avatar
0 votes
1 answer
81 views

I have a component written i .NET/C# that does XSLT processing using SaxonCS. This component works fine when running it in a Windows host application. But when I run it within a docker container I get ...
Jonas Samuelsson's user avatar
0 votes
1 answer
33 views

This is a sample of data from my XML table: <table> <tr> <td>LCC/8700087542</td> <td>010E</td> <td>LHAO</td> <td>HWAA</td> <td>Add</...
Shev's user avatar
  • 3
1 vote
2 answers
111 views

I'm building an XSD viewer using XSLT. The viewer should list all elements hierarchically, and I am currently stuck on deduplicating sub-elements which appear more than once in their parent (e.g. due ...
infojunkie's user avatar
  • 1,111
1 vote
1 answer
54 views

Using the latest Saxon parser. This is a snip of a larger XML file. <osm> <node id="38275590"> <tag k="name" v="Wimbledon"/> </node&...
DaveF's user avatar
  • 285
1 vote
1 answer
67 views

Using Saxon parser freebie. This is a snip of a larger XML file. <osmChange> <modify> <node id="28377390"> <tag k="name" v="Holywell"/>...
DaveF's user avatar
  • 285
0 votes
2 answers
111 views

(Inspired by an old question) I have some stylesheets that use the anonymous document('') function to implement look-up tables. <!-- example the lookup table data --> <ref:data xmlns:ref=&...
Ben Ketteridge's user avatar
1 vote
3 answers
157 views

I need to split a single batched XML document into individual XML documents based on a nested child node, but each document needs to retain all of the information at the parent levels. Parent document:...
Xingzhou Liu's user avatar
  • 1,579
2 votes
2 answers
58 views

I want to use xslt to transpose my input to generate a header for my csv file while printing associated values in the rows Here is my sample XMl <?xml version="1.0" encoding="UTF-8&...
Arthi Velloori's user avatar
2 votes
4 answers
105 views

In XPath 2.0, how can I determine if a sequence is a contiguous subsequence of another sequence? For example ('1','2') is a contiguous subsequence of ('a','b','1','2','3','4') Here, I am not ...
yas's user avatar
  • 3,662
0 votes
1 answer
57 views

I am trying to transform an XML inside an Akka Flow, using javax.xml.transform.Transformer: Flow<ByteString, ByteString, NotUsed> transformXml(@NonNull final Source<ByteString, ?> xslt) { ...
Nikolas's user avatar
  • 2,560
2 votes
2 answers
89 views

Why do I get the xmlns=""? I've tried putting the namespace in many other places and messed with the prefix but can't seem to remove the empty xmlns="" attributes. XML: <?xml ...
Jack Creed's user avatar
1 vote
2 answers
70 views

I have the following stylesheet <xsl:stylesheet version="1.0" xmlns:test="test" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:xs="http://...
Apion's user avatar
  • 33
0 votes
1 answer
71 views

I have an issue when converting one XML document to PDF. If I remove "title" from from the sample below it converts just fine. <list type="bulleted"> <title>Key:<...
Ruth Cundy's user avatar
0 votes
0 answers
88 views

I am having difficulty as I try to remove indentation in an XML document. I am attempting to do this by employing 2 techniques: Adding <xsl:strip-space elements="*"/> Applying “...
jcalder1969's user avatar

1
2 3 4 5
777