Hi! This is a simple question: Does JDK 6 Transformer Class support XSLT 2.0?
My problem raise when I use the <xsl:character-map> tag. A Example:
template.xslt
<xsl:stylesheet version="2.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" use-character-maps="vxml"/>
<xsl:character-map name="vxml">
<xsl:output-character character="«" string='<'/>
<xsl:output-character character="»" string='>'/>
<xsl:output-character character="¨" string='"'/>
</xsl:character-map>
<xsl:template match="/">
«vxml version=¨2.0¨»
.
{xslt operations...}
.
«/vxml»
</xsl:template>
.
.
.
{code}
*someXML.xml*
{code}
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="template.xslt"?>
.
.
.
{code}
Well, when I use external software (Altova XMLSpy), the result is exactly that I want... but, when I use a simple java class with Transformer (in java 6), the result contains alternative char and no the correct character that character-map is supposed to change.
Then, in this forum all people only use XSLT with version="1.0"... and appear my question... Transformer Class in JDK 6 really support XSLT version 2.0? I can't find information of this...
Edited by: MIrribarra on 20-03-2009 05:51 PM
Edited by: MIrribarra on 20-03-2009 05:53 PM
Deleted intensionally semi-colon in "<" and ">" because editor change string code