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/11/14 21:20:03 UTC

cvs commit: xml-xalan/test/tests/conf/idkey idkey52b.xml idkey50.xsl idkey52.xml idkey52.xsl idkey52a.xml idkey50.xml

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