xtp-strict.xtp
来自「解压在c盘」· XTP 代码 · 共 31 行
XTP
31 行
<title section="Resin : JSP Tutorial : XTP :">Strict XSL</title><p/>Resin, of course, also supports strict XSL syntax. Strict XSL ismore verbose and less readable, but has the advantage of being more standard.<p/>The following stylesheet is exactly equivalent to the previous one butuses strict XSL syntax.<example title="stylesheet.xsl"><xsl:stylesheet><!-- make sure '<' is not printed as '&lt;' --><xsl:output disable-output-escaping='true'/><!-- copy input to output --><xsl:template match='*|@*'><xsl:copy><xsl:apply-templates select='node()|@*'/></xsl:copy></xsl:template><!-- rewrite <a href> --><xsl:template match='a[@href]'><a href='<%= response.encodeURL("{@href}") %>'> <xsl:apply-templates select='node()|@*[name(.)!="href"]'/></a></xsl:template></xsl:stylesheet></example>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?