You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/12/19 21:56:09 UTC

cvs commit: xml-xalan/test/tests/conf/idkey idkey53.xsl idkey53.xml

dmarston    01/12/19 12:56:09

  Added:       test/tests/conf/idkey idkey53.xsl idkey53.xml
  Log:
  More coverage of qualified names for objects
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/idkey/idkey53.xsl
  
  Index: idkey53.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                  xmlns:baz="http://xsl.lotus.com/ns1"
                  xmlns:bar="http://xsl.lotus.com/ns1"
                  exclude-result-prefixes="bar baz">
  
    <!-- FileName: idkey53 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.2 -->
    <!-- Creator: David Bertoni -->
    <!-- Purpose: Test for xsl:key and key() with a qualified name, different prefix. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:key name="baz:mykey" match="div" use="title"/>
  
  <xsl:template match="doc">
    <root>
      <xsl:value-of select="key('bar:mykey', 'Introduction')/p"/><xsl:text> </xsl:text>
      <xsl:value-of select="key('bar:mykey', 'Stylesheet Structure')/p"/><xsl:text> </xsl:text>
      <xsl:value-of select="key('bar:mykey', 'Expressions')/p"/>
    </root>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/idkey/idkey53.xml
  
  Index: idkey53.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <div>
      <title>Introduction</title>
      <p>Intro Section.</p>
    </div>
    
    <div>
      <title>Stylesheet Structure</title>
      <p>SS Section.</p>
    </div>
    
    <div>
      <title>Expressions</title>
      <p>Exp Section.</p>
    </div>
  </doc>
  
  

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