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 52 <!-- 53 * Licensed to the Apache Software Foundation (ASF) under one 54 * or more contributor license agreements. See the NOTICE file 55 * distributed with this work for additional information 56 * regarding copyright ownership. The ASF licenses this file 57 * to you under the Apache License, Version 2.0 (the "License"); 58 * you may not use this file except in compliance with the License. 59 * You may obtain a copy of the License at 60 * 61 * http://www.apache.org/licenses/LICENSE-2.0 62 * 63 * Unless required by applicable law or agreed to in writing, software 64 * distributed under the License is distributed on an "AS IS" BASIS, 65 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 66 * See the License for the specific language governing permissions and 67 * limitations under the License. 68 --> 69 70</xsl:stylesheet> 71