I am using XSLT to transform a XML file in to a HTML file.
I would like to insert a plain text file in to the HTML as part of the transform.
Is this possible?
XSLT <xsl:text>The <xsl:text> element is used to write literal text to the output. Tip: This element may contain literal text, entity references, and #PCDATA.
If you can use XSLT 2.0 you could use unparsed-text() ... Text File (Do not use the text file as direct input to the XSLT.) ! ITEM_NAME Item value !
You have a few options:
<text></text>
tags, you may import it with the document()
function. This works in XSLT1.0, and does not require another programming language.unparsed-text()
.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With