I want design something like...
<DB[0]><xsl:value-of select="test"><DB[0]>
which will update the database table field DB[0]
with data test.
But it's not working ...as xsl is not allowing []
bracket.
I want design something like...
<DB[0]><xsl:value-of select="test"><DB[0]>
which will update the database table field DB[0]
with data test.
But it's not working ...as xsl is not allowing []
bracket.
XML element Naming Conventions
For exact definition, please visit here.
So either '[' or ']' is not allowed.
In case you need to create a well-formed XML document, then a string like "<DB[0]>
" isn't a legal name.
In case you want to create just text, you can alwyas do so by specifying:
<xsl:output method="text"/>
So, this transformation:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/">
<DB[0]><xsl:value-of select="test"/></DB[0]>
</xsl:template>
</xsl:stylesheet>
when applied on this XML document:
<test>XXX</test>
produces:
<DB[0]>XXX</DB[0]>