cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/xscript/xslt copy-of.xsl value-of.xsl
Date Fri, 26 Jul 2002 04:04:00 GMT
vgritsenko    2002/07/25 21:04:00

  Modified:    src/java/org/apache/cocoon/components/xscript/xslt
                        copy-of.xsl value-of.xsl
  Log:
  default xpath is '/', and in value-of stylesheet: result must have root element
  
  Revision  Changes    Path
  1.2       +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.2
  diff -u -r1.1 -r1.2
  --- copy-of.xsl	3 Jan 2002 12:31:15 -0000	1.1
  +++ copy-of.xsl	26 Jul 2002 04:04:00 -0000	1.2
  @@ -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.2       +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.2
  diff -u -r1.1 -r1.2
  --- value-of.xsl	3 Jan 2002 12:31:15 -0000	1.1
  +++ value-of.xsl	26 Jul 2002 04:04:00 -0000	1.2
  @@ -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


Mime
View raw message