Author: michiel
Date: 2009-06-03 18:07:49 +0200 (Wed, 03 Jun 2009)
New Revision: 35637
Modified:
mmbase/trunk/applications/share/xslt/xml2xhtml-base.xslt
Log:
unparsed-text funtion not working in xslt of java (needing saxon or so, for
that)
Modified: mmbase/trunk/applications/share/xslt/xml2xhtml-base.xslt
===================================================================
--- mmbase/trunk/applications/share/xslt/xml2xhtml-base.xslt 2009-06-03
15:41:57 UTC (rev 35636)
+++ mmbase/trunk/applications/share/xslt/xml2xhtml-base.xslt 2009-06-03
16:07:49 UTC (rev 35637)
@@ -354,10 +354,7 @@
</xsl:for-each>
</xsl:if>
<xsl:if test="not($linkexamples)">
- <xsl:for-each select="example/include">
-
- <xsl:value-of select="unparsed-text(@href)" />
- </xsl:for-each>
+ <xsl:apply-templates select="example/include" mode="href" />
</xsl:if>
</td>
</tr>
@@ -365,6 +362,14 @@
</table>
</xsl:template>
+ <xsl:template name="include" mode="href">
+ <!-- xslt2
+ <xsl:for-each select="example/include">
+ <xsl:value-of select="unparsed-text(@href)" />
+ </xsl:for-each>
+ -->
+ </xsl:template>
+
<xsl:template match="function" mode="full">
<xsl:param name="file" select="false()" /><!-- if true, reference to files
-->
<xsl:param name="type" select="'all'" /><!-- if refering to tag of other
type, must also reference to file -->
@@ -426,9 +431,7 @@
</xsl:for-each>
</xsl:if>
<xsl:if test="not($linkexamples)">
- <xsl:for-each select="example/include">
- <xsl:value-of select="unparsed-text(@href)" />
- </xsl:for-each>
+ <xsl:apply-templates select="example/include" mode="href" />
</xsl:if>
</td>
</tr>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs