Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

XSLT version supported in JDK 6 Transformer

843834Mar 20 2009 — edited Mar 20 2009
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='&lt'/>
   <xsl:output-character character="»" string='&gt'/>
   <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 "&lt" and "&gt" because editor change string code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 17 2009
Added on Mar 20 2009
1 comment
289 views