View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/trunk/scripts/tlddoc/tld2_1-tld2_1.xsl
Revision: 21046
Committed: Mon Dec 7 17:49:08 2009 UTC (9 years, 10 months ago) by rbijlsma
Content type: application/xml
File size: 3709 byte(s)
Log Message:
HREPTWODOCS-112 titles in menus

File Contents

# Content
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 Bugfix by Hippo: removed the normalize-space for example nodes.
4 This caused examples to have no newlines and be unreadable.
5
6 The example content is put in a <pre> by tag.html.xsl.
7 Space-normalizing that content first makes no sense, as the primary purpose of
8 the pre is to retain newlines within a html document. That will not work if you
9 remove them first.
10
11 The normalize-space may not be necessary at all, as html will normalize space as required.
12 However, in case of comparisons within XSLT's, normalizing space in a preprocess ensures
13 intended results.
14
15 -->
16
17 <!--
18 - <license>
19 - Copyright (c) 2003-2004, Sun Microsystems, Inc.
20 - All rights reserved.
21 -
22 - Redistribution and use in source and binary forms, with or without
23 - modification, are permitted provided that the following conditions are met:
24 -
25 - * Redistributions of source code must retain the above copyright
26 - notice, this list of conditions and the following disclaimer.
27 - * Redistributions in binary form must reproduce the above copyright
28 - notice, this list of conditions and the following disclaimer in the
29 - documentation and/or other materials provided with the distribution.
30 - * Neither the name of Sun Microsystems, Inc. nor the names of its
31 - contributors may be used to endorse or promote products derived from
32 - this software without specific prior written permission.
33 -
34 - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35 - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
36 - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
37 - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
38 - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
39 - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
40 - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
41 - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
42 - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
43 - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
44 - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
45 - </license>
46 -->
47
48 <!--
49
50 Identity transformation, added for flexibility.
51
52 1. Remove any tag-extension, function-extension and taglib-extension
53 elements.
54
55 Author: Mark Roth
56
57 -->
58
59 <xsl:stylesheet version="1.0"
60 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
61 xmlns:javaee="http://java.sun.com/xml/ns/javaee">
62 <xsl:output method="xml" indent="yes"/>
63
64 <xsl:template match="/javaee:taglib">
65 <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/javaee">
66 <xsl:attribute name="xsi:schemaLocation"
67 namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attribute>
68 <xsl:attribute name="version">2.1</xsl:attribute>
69 <xsl:apply-templates select="*"/>
70 </xsl:element>
71 </xsl:template>
72
73 <xsl:template match="javaee:tag-extension">
74 </xsl:template>
75
76 <xsl:template match="javaee:function-extension">
77 </xsl:template>
78
79 <xsl:template match="javaee:taglib-extension">
80 </xsl:template>
81
82 <xsl:template match="@*|node()">
83 <xsl:copy>
84 <xsl:apply-templates select="@*|node()"/>
85 </xsl:copy>
86 </xsl:template>
87
88 <xsl:template match="text()[not(parent::javaee:example)]">
89 <xsl:value-of select="normalize-space(.)" />
90 </xsl:template>
91
92 </xsl:stylesheet>

Properties

Name Value
svn:eol-style native
svn:keywords Id