You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2005/06/06 03:15:22 UTC
svn commit: r180183 - in
/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml:
output.xmap resources/stylesheets/strip_namespaces.xsl
resources/templates/feedback.ft
Author: thorsten
Date: Sun Jun 5 18:15:19 2005
New Revision: 180183
URL: http://svn.apache.org/viewcvs?rev=180183&view=rev
Log:
getting rid of namespaces in the last processing step for xhtml. Diwaker Gupta reported that left over namespaces were causing trouble. thx Diwaker Gupta. :)
Added:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl (with props)
Modified:
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/feedback.ft
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap?rev=180183&r1=180182&r2=180183&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/output.xmap Sun Jun 5 18:15:19 2005
@@ -252,6 +252,7 @@
<map:transform src="cocoon://getStylesheet.xhtml.{1}">
<map:parameter name="path" value="{0}"/>
</map:transform>
+ <map:transform src="resources/stylesheets/strip_namespaces.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
<map:match pattern="**/*.html">
@@ -259,6 +260,7 @@
<map:transform src="cocoon://getStylesheet.xhtml.{1}/{2}">
<map:parameter name="path" value="{0}"/>
</map:transform>
+ <map:transform src="resources/stylesheets/strip_namespaces.xsl"/>
<map:serialize type="xhtml"/>
</map:match>
Added: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl?rev=180183&view=auto
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl (added)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl Sun Jun 5 18:15:19 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xhtml" version="1.0" encoding="UTF-8" indent="yes"/>
+ <xsl:template match="*">
+ <!-- remove element prefix (if any) -->
+ <xsl:element name="{local-name()}">
+ <!-- process attributes -->
+ <xsl:for-each select="@*">
+ <!-- remove attribute prefix (if any) -->
+ <xsl:attribute name="{local-name()}">
+ <xsl:value-of select="."/>
+ </xsl:attribute>
+ </xsl:for-each>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+</xsl:stylesheet>
Propchange: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/stylesheets/strip_namespaces.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/feedback.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/feedback.ft?rev=180183&r1=180182&r2=180183&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/feedback.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.viewHelper.xhtml/resources/templates/feedback.ft Sun Jun 5 18:15:19 2005
@@ -27,8 +27,7 @@
format="xhtml" name="feedback" inputFormat="xsl" body="true" head="false" css="true">
<xsl:stylesheet version="1.1"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="feedback-css">
#feedback {