⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xtp-strict.xtp

📁 解压在c盘
💻 XTP
字号:
<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">&lt;xsl:stylesheet>&lt;!-- make sure '&lt;' is not printed as '&amp;lt;' -->&lt;xsl:output disable-output-escaping='true'/>&lt;!-- copy input to output -->&lt;xsl:template match='*|@*'>&lt;xsl:copy>&lt;xsl:apply-templates select='node()|@*'/>&lt;/xsl:copy>&lt;/xsl:template>&lt;!-- rewrite &lt;a href> -->&lt;xsl:template match='a[@href]'>&lt;a href='&lt;%= response.encodeURL("{@href}") %>'>  &lt;xsl:apply-templates select='node()|@*[name(.)!="href"]'/>&lt;/a>&lt;/xsl:template>&lt;/xsl:stylesheet></example>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -