In a joint effort Clemens Utschig-Utschig and I did a small exercise to answer a question from one of our Oracle Partners:
How to create an XML processing instruction like <?Foo?> after the normal XML preamble <?xml?> but before the document root with XSLT?
Answer:
Before any other XSLT template have this one:
<xsl:template match="/">
<xsl:processing-instruction name="Foo"/>
<xsl:apply-templates />
</xsl:template>
This will generate something like this:
<?xml version="1.0" encoding="UTF-8"?><?Foo?>
Comments (3)
Did you try to use the XMLPI SQL function or had it to be a XSLT specific solution?
Posted by Marco Gralike | April 25, 2007 6:24 PM
Posted on April 25, 2007 18:24
It must be a XSLT specific solution. Using XML APIs is always a good option, of course.
Posted by Olaf Heimburger | April 26, 2007 12:58 AM
Posted on April 26, 2007 00:58
...it depends...
;-)
Posted by Marco Gralike | April 26, 2007 7:31 AM
Posted on April 26, 2007 07:31