Add xml declaration statement using xslt.
-
Hi Everybody. I want to add an extra declaration statement like '' in my o/p xml which is generated by xslt. Will anybody suggest me is there any way to do this using xslt?
-
Hi Everybody. I want to add an extra declaration statement like '' in my o/p xml which is generated by xslt. Will anybody suggest me is there any way to do this using xslt?
:confused: I don't know if this works but you can try placing this at the top of your main xsl:template:
<xsl:processing-instruction name="qbxml">
xsl:textversion="7.0"</xsl:text>
</xsl:processing-instruction>"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
:confused: I don't know if this works but you can try placing this at the top of your main xsl:template:
<xsl:processing-instruction name="qbxml">
xsl:textversion="7.0"</xsl:text>
</xsl:processing-instruction>"We make a living by what we get, we make a life by what we give." --Winston Churchill
Thank You for help. It works perferctly.
-
Thank You for help. It works perferctly.
when I tried in xslt 1.0 in vs2008 <xsl:processing-instruction name="xml"> xsl:textversion="1.0"</xsl:text> </xsl:processing-instruction> I am getting error xsl:processing-instruction cannot be a child of xsl:stylesheet