Resin, of course, also supports strict XSL syntax. Strict XSL is more verbose and less readable, but has the advantage of being more standard.

The following stylesheet is exactly equivalent to the previous one but uses strict XSL syntax.

<!-- make sure '<' is not printed as '&lt;' -->
<xsl:output disable-output-escaping='true'/>

<!-- copy input to output -->
<xsl:template match='*|@*'>
<xsl:apply-templates select='node()|@*'/>

<!-- rewrite <a href> -->
<xsl:template match='a[@href]'>
<a href='<%= response.encodeURL("{@href}") %>'>
  <xsl:apply-templates select='node()|@*[name(.)!="href"]'/>


Copyright © 1998-2002 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.