Summary: | This page is not Valid XHTML 1.0 Strict | ||
---|---|---|---|
Product: | Lenya | Reporter: | Ivan Izaguirre <ivan.izaguirre> |
Component: | Site Management | Assignee: | Lenya Developers <dev> |
Status: | REOPENED --- | ||
Severity: | major | CC: | ivan.izaguirre |
Priority: | P2 | ||
Version: | 1.2.5 | ||
Target Milestone: | 1.2.6 | ||
Hardware: | Other | ||
OS: | Linux | ||
URL: | http://www.whitebearsolutions.com | ||
Attachments: | [PATCH] This page is Valid XHTML 1.0 Strict |
Description
Ivan Izaguirre
2007-08-06 12:18:09 UTC
New file lenya/lenya/xslt/util/strip_namespaces.xsl of 2007-07-24 <!-- 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: strip_namespaces.xsl 559100 2007-07-24 16:55:19Z nettings $ --> <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="*"> <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> <!-- 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 should not mark a bug "resolved fixed" unless the fix is in the repository. can you create a patch with your fix and attach it here? (In reply to comment #2) > you should not mark a bug "resolved fixed" unless the fix is in the repository. > can you create a patch with your fix and attach it here? > The fix is en the repository lenya 2.0.x. It's a new file lenya/lenya/xslt/util/strip_namespaces.xsl i don't understand. the bug was reported for 1.2.5... what i meant is it should only be marked fixed when it's fixed in the 1.2.5 branch. (In reply to comment #4) > i don't understand. the bug was reported for 1.2.5... > what i meant is it should only be marked fixed when it's fixed in the 1.2.5 branch. > OK, I'm sorry. Created attachment 20624 [details]
[PATCH] This page is Valid XHTML 1.0 Strict
This file is present on lenya 2.0.x
|