~ubuntu-branches/ubuntu/precise/xom/precise

« back to all changes in this revision

Viewing changes to data/xslt/input/fragment.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-11-25 15:50:40 UTC
  • Revision ID: james.westby@ubuntu.com-20071125155040-r75ikcqf1vu0cei7
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
2
<xsl:stylesheet version="1.0" 
 
3
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
4
                                
 
5
  <!-- test a stylesheet that generates a document fragment -->
 
6
                                
 
7
  <xsl:template match="/">
 
8
    <element1>some data and <content/> for a test</element1>
 
9
    <element2>Remember, the XSLT processor is going to strip out the literal white space</element2>
 
10
    <element3>some data and <content/> for a <!--test--></element3>
 
11
        <element4/>
 
12
        <xsl:comment>test</xsl:comment>
 
13
        <xsl:processing-instruction name="test">PIs are not treated as literals in XSLT?</xsl:processing-instruction>
 
14
  </xsl:template>
 
15
 
 
16
</xsl:stylesheet>