DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1520>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1520

xsltc has problems escaping special characters





------- Additional Comments From [EMAIL PROTECTED]  2001-11-15 15:23 -------
test output70 is another test involving special character escaping

Running xalan on output70
<HTML>
    Inside double quotes:
    1. """  <A href="%22"></A>
    2. "'"  <A href="'"></A>
    Inside single quotes:
    3. '"'  <A href="%22"></A>
    4. '''  <A href="'"></A>
    NOTE: hrefs always have the double quotes.
  </HTML>



Running XSLTC with Xerces Parser on output70
<HTML>
    Inside double quotes:
    1. """  
  <A href="""></A>
    2. "'"  
  <A href="'"></A>
    Inside single quotes:
    3. '"'  
  <A href="""></A>
    4. '''  
  <A href="'"></A>
    NOTE: hrefs always have the double quotes.
  
</HTML>

 glrr 476 =>cat output70.xsl
<?xml version="1.0" encoding="ISO-8859-1"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

<xsl:output method="html"/>

  <!-- FileName: outp70 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 1 Introduction -->
  <!-- Purpose: Quotes and apostrophes can be used inside themselves, without
     terminating the string, if entered as entities. -->

<xsl:template match="/">
  <HTML>
    Inside double quotes:
    1. "&quot;"  <A href="&quot;"/>
    2. "&apos;"  <A href="&apos;"/>
    Inside single quotes:
    3. '&quot;'  <A href='&quot;'/>
    4. '&apos;'  <A href='&apos;'/>
    NOTE: hrefs always have the double quotes.
  </HTML>
</xsl:template>

</xsl:stylesheet>

Reply via email to