You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@locus.apache.org on 2000/11/16 01:42:10 UTC

cvs commit: xml-xalan/test/tests/api/trax/stream StreamOutputFormat.xml StreamOutputFormat.xsl

curcuru     00/11/15 16:42:10

  Added:       test/tests/api/trax/stream StreamOutputFormat.xml
                        StreamOutputFormat.xsl
  Log:
  New StreamResult API coverage test and stylesheets
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/api/trax/stream/StreamOutputFormat.xml
  
  Index: StreamOutputFormat.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <cdataHere>CDATA? or not?</cdataHere>
    <selector>
      <item number="1">one</item>
      <item value="two">2</item>
    </selector>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/stream/StreamOutputFormat.xsl
  
  Index: StreamOutputFormat.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <!-- Include all XSLT spec xsl:output attrs -->
  <xsl:output method="xml"
              version="123.45"
              encoding="UTF-8"
              standalone="yes"
              doctype-public="this-is-doctype-public"
              doctype-system="this-is-doctype-system"
              cdata-section-elements="cdataHere"
              indent="yes"
              media-type="text/test/xml"
              omit-xml-declaration="no" />
  
    <xsl:template match="doc">
      <out>
        <cdataHere>CDATA? or not?</cdataHere>
        <xsl:text>foo</xsl:text>
        <xsl:copy-of select="cdataHere" />
        <out2>
          <xsl:text>bar</xsl:text>
          <xsl:copy-of select="selector" />
        </out2>
      </out>
    </xsl:template>
  </xsl:stylesheet>