我有一個XML文件,比方說: 重寫的for-each XSLT
<parent>
<notimportant1>
</notimportant1>.
<notimportant2>
</notimportant2>.
....
<child>
<grandchild>.
....
</grandchild>
<grandchild>
....
</grandchild>.
....
<notimportant3>
</notimportant3>
</child>
<parent>
而且有XSL文件:
<xsl:template match="parent">.
...
...
<xsl:for-each select="child">.
<xsl:for-each select="grandchild">
...
</xsl:for-each>.
</xsl:for-each>
....
</xsl:template>
現在,我要創建新的xsl
文件, 這隻能導入/包含這個現有的xsl
。
是否有可能重寫此爲每個行爲,以便取代它我只能顯示一些預定義的文本/鏈接?
我無法修改現有的xsl,我想使用模板中的所有內容 - 不能僅僅定義具有更高優先級的新項。
打倒我,大約5秒鐘。 – 2012-07-30 13:10:14
哈哈,它通常是相反的方向 – Utkanos 2012-07-30 13:10:33
問題是,我想使用模板中的所有內容,因此我無法覆蓋整個模板。 – user1562977 2012-07-30 13:18:40