38,816 questions
0
votes
1
answer
83
views
How can I prevent xsltproc from generating same HTML code twice
I have a problem extending the docbook xml template. When I convert the XML file to HTML some HTML code is generated twice.
The stylesheet is:
<?xml version="1.0" encoding="UTF-8&...
2
votes
1
answer
85
views
Can I define an ENTITY using the xsl namespace in XSL?
In Sorting in XSLT the following code is being used:
<!-- xq439.xsl: converts xq436.xml into xq440.txt -->
<!DOCTYPE stylesheet [
<!ENTITY space "<xsl:text> </xsl:text>&...
2
votes
2
answers
118
views
XSL to split "two column" table where each "column" consists of multiple columns
I'm trying to put some legacy output into present times, converting a HTML table to an XML format.
The legacy output lists (product, price, order_number, amount) in two column per table row, so that ...
1
vote
1
answer
98
views
Which characters are considered legal for result-document?
I'm using XSLT to convert an XML into a series of HTML files.
<xsl:result-document method="html" encoding="UTF-8" href="{$BaseFolder}{$filename}.html">
...
3
votes
2
answers
144
views
XSLT unparsed-text() URL resolution issued
I am using Saxon-HE 10.9.0 in a .NET application that is transforming using an XSLT with the unparsed-text() that is inlining JavaScript in an output HTML file, for example:
<xsl:value-of select=&...
Advice
0
votes
6
replies
83
views
How do I only return different value of LAD10 of multiple LAD segments in a EDI 204 file?
In a EDI 204 file are there multiple (over 300) LAD segments, most of values of element LAD10 are repeated. I only want to get the different value of element LAD10 using XSLT version 1.0.
Thanks
My ...
0
votes
1
answer
85
views
Using XSLT3.0 in Saxon-JS 2, how can one configure the processor so that it accepts codepoints-to-string(8)?
Within Saxon-J, I can set the processor configuration to allow XML1.1 characters, for example by:
processor.getUnderlyingConfiguration().setXMLVersion(XML11);
I'm looking for the equivalent in Saxon-...
0
votes
1
answer
84
views
Remove leading space in xsl:when
I am trying to modify the xsl APA style in Microsoft Word, and I am unable to remove a leading space in a xsl:when for citations. It is added somewhere between line 2707 and line 3044 in the community ...
0
votes
2
answers
88
views
An empty sequence is not allowed as the value of variable $attachment-mediatypes
I am using the image orbeon/orbeon-forms:2025.1-pe and using MySQL server as a database.
orbeon.xml:
<Context path="/orbeon">
<Resource
name="jdbc/mysql"
...
2
votes
1
answer
120
views
PHP end tag fails when used inside an attribute - is this a bug?
I am creating web content that may be included from various locations. For images I need to set the @src such that the image is always found, no matter where the web page might be. I am setting a $...
3
votes
1
answer
114
views
Force sequencing in XProc when a p:for-each only has side effects?
I’m using XProc 3.0 with XML Calabash 3. I have a pipeline where:
I iterate over a directory of XML files
For each file, I run an XSLT trasnformation and store a modified version back to disk
After ...
Best practices
0
votes
3
replies
90
views
Displaying Information On Browser
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 ...
1
vote
1
answer
167
views
Indesign table XML convert to HTML table using XSLT 2.0
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 ...
0
votes
1
answer
87
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
103
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....