- Is XSLT the right choice to interpret CDATA in a certain way and write
to a file?
-
Yes, CDATA is just a (part of a) text node and is processed as any other text node.
-
Yes, the XSLT 2.0
xsl:result-document
instruction is used to write to (possibly many different) file(s).
.2. Use some sort of custom XSLT function that will break into a parser
handler to handle this:
<xsl:MyFunc></xsl:MyFunc>
Yes, this is done using the standard XSLT 2.0 instruction xsl:function
3.Is there a way to write custom XSLT functions as tags using for, if etc.?
This question isn’t clear. XSLT has many such instructions, like xsl:for-each
, xsl:if
, xsl:choose
, xsl:when
, xsl:otherwise
, … etc.
XPath 2.0 (which is used within XSLT 2.0) xas its own for
, if
then
else
, return
clauses.
4
solved XSLT interpret cdata and write to file [closed]