[ http://issues.apache.org/jira/browse/XALANJ-1709?page=all ]
     
Brian Minchau closed XALANJ-1709:
---------------------------------

    Assign To:     (was: Xalan Developers Mailing List)

> XSLTC, disable-output-escaping="yes" works on xsl:value-of  but not xsl:text
> ----------------------------------------------------------------------------
>
>          Key: XALANJ-1709
>          URL: http://issues.apache.org/jira/browse/XALANJ-1709
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: Latest Development Code
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Brian Minchau

>
> If you run this input XML:
> -------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <doc>
>   <foo>&amp;&apos;&lt;&gt;&#90;</foo>
> </doc>
> -------------------------
> with this stylesheet:
> -------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
> <xsl:output method="html" encoding="UTF-8" />
> <xsl:template match="doc">
> <HTML>
> <BODY>
> <P><xsl:text disable-output-escaping="yes"><xsl:value-of 
> select="foo" /></xsl:text></P>
> <P><xsl:value-of select="foo" disable-output-escaping="yes" /></P>
> <P><xsl:text disable-output-
> escaping="yes">&amp;&apos;&lt;&gt;&#90;</xsl:text></P>
> </BODY>
> </HTML>
> </xsl:template>
> </xsl:stylesheet>
> -------------------------
> The output for XSLTC is:
> <HTML>
> <BODY>
> <P>&amp;'&lt;&gt;Z</P>
> <P>&'<>Z</P>
> <P>&'<>Z</P>
> </BODY>
> </HTML>
> I had expected all three <P>...</P> to be the same, but the first one is 
> escaped
> (except for &apos;  ).
> When run with Xalan-J interpreteive I get an error:
> ; SystemID: file:///D:/temp/bug.xsl; Line#: 7; Column#: 73
> ; SystemID: file:///D:/temp/bug.xsl; Line#: 7; Column#: 73
> javax.xml.transform.TransformerException: xsl:value-of is not allowed in this 
> position in the stylesheet!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to