ASF Bugzilla – Attachment 20624 Details for
Bug 43050
This page is not Valid XHTML 1.0 Strict
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH] This page is Valid XHTML 1.0 Strict
bug43050.patch (text/plain), 2.09 KB, created by
Ivan Izaguirre
on 2007-08-09 07:45:22 UTC
(
hide
)
Description:
[PATCH] This page is Valid XHTML 1.0 Strict
Filename:
MIME Type:
Creator:
Ivan Izaguirre
Created:
2007-08-09 07:45:22 UTC
Size:
2.09 KB
patch
obsolete
>Index: strip_namespaces.xsl >=================================================================== >--- strip_namespaces.xsl (revisión: 564180) >+++ strip_namespaces.xsl (copia de trabajo) >@@ -16,26 +16,44 @@ > limitations under the License. > --> > >+<!-- >+The XHTML namespace is declared as the default namespace >+to cause the stylesheet to output XHTML using the empty string >+as namespace prefix (<html> instead of <xhtml:html>). >+--> >+ > <!-- $Id$ --> >- >-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> >+<xsl:stylesheet version="1.0" >+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >+ xmlns="http://www.w3.org/1999/xhtml"> >+ > <xsl:output method="xml" 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:element name="{local-name()}" namespace="{namespace-uri()}"> >+ <xsl:copy-of select="@*"/> > <xsl:apply-templates/> > </xsl:element> > </xsl:template> >- >+ >+ <!-- fixme: this might be generalized to also pass on processing instructions etc...--> > <xsl:template match="comment()"> > <xsl:copy/> > </xsl:template> >- >-</xsl:stylesheet> >\ Sin fin-de-lÃnea al final del archivo >+ >+ <!-- >+ Workaround to prevent the serializer from collapsing these >+ elements, since browsers currently can not handle things like >+ <textarea/> >+ The XHTML serializer currently used by Lenya can not be >+ configured to avoid this collapsing; as long as that is the case >+ this workaround is needed. >+ --> >+ <xsl:template match="textarea|script|style"> >+ <xsl:element name="{local-name()}"> >+ <xsl:copy-of select="@*"/> >+ <xsl:apply-templates/> >+ <xsl:if test="string-length(.) = 0"><xsl:text> </xsl:text></xsl:if> >+ </xsl:element> >+ </xsl:template> >+</xsl:stylesheet>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43050
: 20624