xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmars...@apache.org
Subject cvs commit: xml-xalan/test/tests/conf/idkey idkey52b.xml idkey50.xsl idkey52.xml idkey52.xsl idkey52a.xml idkey50.xml
Date Wed, 14 Nov 2001 20:20:03 GMT
dmarston    01/11/14 12:20:03

  Added:       test/tests/conf/idkey idkey52b.xml idkey50.xsl idkey52.xml
                        idkey52.xsl idkey52a.xml idkey50.xml
  Log:
  More coverage of key() and document() together
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/idkey/idkey52b.xml
  
  Index: idkey52b.xml
  ===================================================================
  <?xml version="1.0"?>
  <main>
  <entry name="XML">--B's citation of the XML spec--</entry>
  <entry name="XPath">--B's citation of the XPath spec--</entry>
  <entry name="XSLT">--B's citation of the XSLT spec--</entry>
  </main>
  
  
  1.3       +37 -26    xml-xalan/test/tests/conf/idkey/idkey50.xsl
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/idkey/idkey52.xml
  
  Index: idkey52.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  Blah blah blah.
  Blah blah blah.
  For details, see <bibref>XSLT</bibref>.
  Blah blah blah.
  For details, see <bibref>XML</bibref>.
  Blah blah blah.
  Blah blah blah.
  For details, see <bibref>XPath</bibref>.
  Blah blah blah.
    <refdoc>idkey52a.xml</refdoc>
    <refdoc>idkey52b.xml</refdoc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/idkey/idkey52.xsl
  
  Index: idkey52.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: idkey52 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.2 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test combination of key() and document() on multiple files. -->
  
        <!-- Compare to idkey18 -->
  
  <xsl:key name="bib" match="entry" use="@name" />
  
  <xsl:template match="doc">
   <root>
    <xsl:apply-templates/>
   </root>
  </xsl:template>
  
  <xsl:template match="bibref">
    Got a bibref for <xsl:value-of select="."/>...
    <xsl:variable name="lookup" select="."/>
    <xsl:for-each select="document(refdoc)">
      <xsl:apply-templates select="key('bib',$lookup)"/>
    </xsl:for-each>
  </xsl:template>
  
  <xsl:template match="refdoc"><!-- suppress default action -->
    <xsl:apply-templates/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/idkey/idkey52a.xml
  
  Index: idkey52a.xml
  ===================================================================
  <?xml version="1.0"?>
  <main>
  <entry name="XML">--A's citation of the XML spec--</entry>
  <entry name="XPath">--A's citation of the XPath spec--</entry>
  <entry name="XSLT">--A's citation of the XSLT spec--</entry>
  </main>
  
  
  1.3       +4 -113    xml-xalan/test/tests/conf/idkey/idkey50.xml
  
  
  
  

---------------------------------------------------------------------
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