xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject cvs commit: xml-xalan/test/tests/extensions/library libraryNodeset03.xsl
Date Fri, 19 Oct 2001 14:55:18 GMT
curcuru     01/10/19 07:55:18

  Modified:    test/tests/extensions/library libraryNodeset03.xsl
  Log:
  Fix extension namespaces to use 'magic' xalan: one
  
  Revision  Changes    Path
  1.2       +20 -20    xml-xalan/test/tests/extensions/library/libraryNodeset03.xsl
  
  Index: libraryNodeset03.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/extensions/library/libraryNodeset03.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- libraryNodeset03.xsl	2001/10/19 14:14:01	1.1
  +++ libraryNodeset03.xsl	2001/10/19 14:55:18	1.2
  @@ -1,16 +1,16 @@
   <?xml version="1.0"?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  -                xmlns:Nodeset="org.apache.xalan.xslt.extensions.Nodeset"
   				xmlns:test="http://www.cnn.com"
   				xmlns:default="http://www.hello.com"
  -                extension-element-prefixes="Nodeset"
  -                exclude-result-prefixes="test default">
  +                xmlns:xalan="http://xml.apache.org/xalan"
  +                exclude-result-prefixes="test default xalan">
  +                
   
     <!-- FileName: extend21 -->
     <!-- Document: http://www.w3.org/TR/xslt -->
     <!-- DocVersion: 19991116 -->
     <!-- Section: 14 Extensions -->
  -  <!-- Purpose: Testing Lotus-specific extension "Nodeset". -->
  +  <!-- Purpose: Testing Lotus-specific extension "xalan:nodeset". -->
    
   <xsl:strip-space elements="*"/>
   <xsl:output indent="yes"/>
  @@ -36,54 +36,54 @@
   		</docelem>
   	  </xsl:variable>
   
  -	  <xsl:value-of select="Nodeset:nodeset($rtf)/docelem/elem1"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="xalan:nodeset($rtf)/docelem/elem1"/><xsl:text>&#10;</xsl:text>
   
  -	  <xsl:for-each select="Nodeset:nodeset($rtf)/docelem/*">
  +	  <xsl:for-each select="xalan:nodeset($rtf)/docelem/*">
   		  <xsl:value-of select="name(.)"/><xsl:text>,</xsl:text>
   	  </xsl:for-each><xsl:text>&#10;</xsl:text>
   	   
  -	  <xsl:for-each select="Nodeset:nodeset($rtf)/docelem/elem2/*">
  +	  <xsl:for-each select="xalan:nodeset($rtf)/docelem/elem2/*">
   		  <xsl:value-of select="name(.)"/><xsl:text>,</xsl:text>
   	  </xsl:for-each><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Apply-templates match=elem4: </xsl:text>
  -	  <xsl:apply-templates select="Nodeset:nodeset($rtf)/docelem/elem4"/>
  +	  <xsl:apply-templates select="xalan:nodeset($rtf)/docelem/elem4"/>
   
   	  <xsl:text>Sum: </xsl:text> 	  
  -	  <xsl:value-of select="sum(Nodeset:nodeset($rtf)/docelem/elem3)"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="sum(xalan:nodeset($rtf)/docelem/elem3)"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Count: </xsl:text> 	  
  -	  <xsl:value-of select="count(Nodeset:nodeset($rtf)/docelem/elem3)"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="count(xalan:nodeset($rtf)/docelem/elem3)"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Number: </xsl:text> 	  
  -	  <xsl:value-of select="number(Nodeset:nodeset($rtf)/docelem/elem3[2])"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="number(xalan:nodeset($rtf)/docelem/elem3[2])"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Name: </xsl:text>  
  -	  <xsl:value-of select="name(Nodeset:nodeset($rtf)/*)"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="name(xalan:nodeset($rtf)/*)"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>generate-id: </xsl:text>  
  -	  <xsl:value-of select="generate-id(Nodeset:nodeset($rtf)/docelem/elem4)"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="generate-id(xalan:nodeset($rtf)/docelem/elem4)"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Local-name: </xsl:text>
  -	  <xsl:value-of select="local-name(Nodeset:nodeset($rtf)/*)"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:value-of select="local-name(xalan:nodeset($rtf)/*)"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>Namespace-uri: </xsl:text>
  -	  <xsl:value-of select="namespace-uri(Nodeset:nodeset($rtf)/docelem)"/>,
  -	  <xsl:value-of select="namespace-uri(Nodeset:nodeset($rtf)/default:docelem/default:elem1)"/>,
  -	  <xsl:value-of select="namespace-uri(Nodeset:nodeset($rtf)/default:docelem/test:elem3)"/>:
<xsl:value-of select="(Nodeset:nodeset($rtf)/default:docelem/test:elem3)"/>
  +	  <xsl:value-of select="namespace-uri(xalan:nodeset($rtf)/docelem)"/>,
  +	  <xsl:value-of select="namespace-uri(xalan:nodeset($rtf)/default:docelem/default:elem1)"/>,
  +	  <xsl:value-of select="namespace-uri(xalan:nodeset($rtf)/default:docelem/test:elem3)"/>:
<xsl:value-of select="(xalan:nodeset($rtf)/default:docelem/test:elem3)"/>
   
   	  <xsl:text>&#10;</xsl:text>
   	  <xsl:text>&#10;</xsl:text>
   	  <xsl:text>xsl:copy-of($rtf): &#10; </xsl:text>
  -	  <xsl:copy-of select="Nodeset:nodeset($rtf)/docelem"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:copy-of select="xalan:nodeset($rtf)/docelem"/><xsl:text>&#10;</xsl:text>
   
   	  <xsl:text>&#10;</xsl:text>
   	  <xsl:text>xsl:copy-of(elem1b): &#10; </xsl:text>
  -	  <xsl:copy-of select="Nodeset:nodeset($rtf)/docelem/elem1/elem1b"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:copy-of select="xalan:nodeset($rtf)/docelem/elem1/elem1b"/><xsl:text>&#10;</xsl:text>
   	  
   	  <xsl:text>&#10;</xsl:text>
   	  <xsl:text>xsl:copy-of(test:elem3): &#10; </xsl:text>
  -	  <xsl:copy-of select="Nodeset:nodeset($rtf)/docelem/test:elem3"/><xsl:text>&#10;</xsl:text>
  +	  <xsl:copy-of select="xalan:nodeset($rtf)/docelem/test:elem3"/><xsl:text>&#10;</xsl:text>
   
      </out>
   </xsl:template>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message