Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,是否可以根据 XSLT 中节点的值分配包含文件,例如:
<BankName>HSBC</BankName> <xsl:include href="HSBC.xsl" /> <BankName>DB</BankName> <xsl:include href="DB.xsl" /> <BankName>SCB</BankName> <xsl:include href="SCB.xsl" />
不。像大多数语言一样,XSLT 有一个静态(编译时)阶段和一个动态(运行时)阶段。xsl:include 在编译时处理,远在看到任何节点之前。在您处理 xsl:include 指令之前,您不知道您正在运行什么程序,因此您也不知道如何处理输入。
如果您解释了您想要实现的目标,那么我相信我们可以建议一种在 XSLT 中实现它的方法。
My website is used to get RSS news (for example). Users of website can format the output of results by using template syntax like mustache and can set time to receive email what hot news in a da