You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2002/07/26 06:04:00 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt copy-of.xsl value-of.xsl
vgritsenko 2002/07/25 21:04:00
Modified: src/java/org/apache/cocoon/components/xscript/xslt Tag:
cocoon_2_0_3_branch copy-of.xsl value-of.xsl
Log:
default xpath is '/', and in value-of stylesheet: result must have root element
Revision Changes Path
No revision
No revision
1.1.2.1 +2 -3 xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt/copy-of.xsl
Index: copy-of.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt/copy-of.xsl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- copy-of.xsl 3 Jan 2002 12:31:15 -0000 1.1
+++ copy-of.xsl 26 Jul 2002 04:04:00 -0000 1.1.2.1
@@ -9,10 +9,9 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:saxon="http://icl.com/saxon"
- exclude-result-prefixes="xalan"
- >
+ exclude-result-prefixes="xalan saxon">
- <xsl:param name="xpath"/>
+ <xsl:param name="xpath" select="'/'"/>
<xsl:template match="/">
<xsl:choose>
1.1.2.1 +12 -10 xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt/value-of.xsl
Index: value-of.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt/value-of.xsl,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- value-of.xsl 3 Jan 2002 12:31:15 -0000 1.1
+++ value-of.xsl 26 Jul 2002 04:04:00 -0000 1.1.2.1
@@ -9,19 +9,21 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
xmlns:saxon="http://icl.com/saxon"
- exclude-result-prefixes="xalan">
+ exclude-result-prefixes="xalan saxon">
- <xsl:param name="xpath"/>
+ <xsl:param name="xpath" select="'/'"/>
<xsl:template match="/">
- <xsl:choose>
- <xsl:when test="contains(system-property('xsl:vendor-url'), 'xalan')">
- <xsl:value-of select="xalan:evaluate($xpath)"/>
- </xsl:when>
- <xsl:when test="contains(system-property('xsl:vendor-url'), 'saxon')">
- <xsl:value-of select="saxon:evaluate($xpath)"/>
- </xsl:when>
- </xsl:choose>
+ <root>
+ <xsl:choose>
+ <xsl:when test="contains(system-property('xsl:vendor-url'), 'xalan')">
+ <xsl:value-of select="xalan:evaluate($xpath)"/>
+ </xsl:when>
+ <xsl:when test="contains(system-property('xsl:vendor-url'), 'saxon')">
+ <xsl:value-of select="saxon:evaluate($xpath)"/>
+ </xsl:when>
+ </xsl:choose>
+ </root>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org