[go: up one dir, main page]

Menu

#63 XSLT escaping tricks colorized like errors

colorer-take5
open-postponed
HRC codes (39)
3
2005-04-28
2004-10-29
No

Try to view following test.xsl file in colorer. It is correct.

---------------[test.xsl]
<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="root">
<xsl:variable name="apos" select="&quot;'&quot;" />
<xsl:variable name="quot" select='&apos;"&apos;' />
<xsl:value-of select="translate(.,'&quot;',$apos)"/>
</xsl:template>

</xsl:stylesheet>

---------------[test.xml]
<root>
" " "
</root>

---------------[xsltproc test.xsl test.xml]
<?xml version="1.0"?>

' ' '

Discussion

  • Igor Russkih

    Igor Russkih - 2004-11-24
    • assigned_to: nobody --> lomecb
    • status: open --> open-accepted
     
  • Igor Russkih

    Igor Russkih - 2005-04-28

    Logged In: YES
    user_id=313042

    Too heavy syntax. Lowering severity.

     
  • Igor Russkih

    Igor Russkih - 2005-04-28
    • priority: 5 --> 3
    • status: open-accepted --> open-postponed
     

Log in to post a comment.