You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2006/10/19 23:14:03 UTC
svn commit: r465890 -
/myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
Author: bommel
Date: Thu Oct 19 14:14:02 2006
New Revision: 465890
URL: http://svn.apache.org/viewvc?view=rev&rev=465890
Log:
added workaround for a bug in the tlddoc application for sandbox15
Added:
myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
Added: myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl?view=auto&rev=465890
==============================================================================
--- myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl (added)
+++ myfaces/tomahawk/trunk/sandbox15/core/src/main/tld/misc/resolve_entities-tlddoc.xsl Thu Oct 19 14:14:02 2006
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ - Stylesheet to expand xml entity references inline.
+ -
+ - This is a temporary workaround for a bug in the tlddoc application which means that
+ - a (valid) xmlns attribute is rejected; tlddoc v1.3 only accepts input that (incorrectly)
+ - puts the tld elements in no namespace. This stylesheet therefore generates a special
+ - version of the tld for feeding to the tlddoc app, until such time as tlddoc is fixed.
+ -->
+<xsl:stylesheet version="1.1"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output method="xml"
+ encoding="ISO-8859-1"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+ indent="yes"/>
+
+ <xsl:template match="*" priority="2">
+ <!-- avoiding copy to get get rid of namespace attribute -->
+ <xsl:element name="{name(.)}">
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>