1 <?xml version="1.0"?> 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3 <!-- FileName: OutputPropertiesHTML.xsl --> 4 <!-- Purpose: Legal HTML output for use with OutputPropertiesTest.java --> 5 6 <!-- Include various XSLT spec xsl:output attrs --> 7 <xsl:output method="html" 8 version="123.45" 9 standalone="yes" 10 doctype-public="this-is-doctype-public" 11 doctype-system="this-is-doctype-system" 12 cdata-section-elements="cdataHere" 13 indent="yes" 14 media-type="text/test/xml" 15 omit-xml-declaration="yes" /> 16 17 <xsl:template match="/"> 18 <HTML> 19 <xsl:apply-templates/> 20 </HTML> 21 </xsl:template> 22 23 <xsl:template match="html-tag"> 24 <HEAD> 25 <xsl:element name="TITLE"><xsl:value-of select="head-tag/title-tag/@text"/></xsl:element> 26 <xsl:text>xsl:text within HEAD tag</xsl:text> 27 </HEAD> 28 <BODY> 29 <xsl:apply-templates select="body-tag"/> 30 <xsl:text disable-output-escaping="yes"><P>Fake 'p' element</P></xsl:text> 31 <!-- Some HTML elements below, just for fun --> 32 <P>@ ~ © È</P> 33 </BODY> 34 </xsl:template> 35 36 <xsl:template match="body-tag"> 37 <xsl:apply-templates select="p-tag | ul-tag"/> 38 </xsl:template> 39 40 <xsl:template match="p-tag"> 41 <xsl:element name="P"> 42 <xsl:value-of select="."/> 43 </xsl:element> 44 </xsl:template> 45 46 <xsl:template match="ul-tag"> 47 <UL> 48 <xsl:copy-of select="."/> 49 </UL> 50 </xsl:template> 51 </xsl:stylesheet>