Hi

Am 04.01.2008 um 11:20 schrieb Jürgen Ragaller:

I've been searching for the transformation step that causes that collapsing and I've also been trying to prevent the collapsing by adding "a" to strip_namespaces.xsl (that transformation does not seem to be applied to the content) (and switching prettyprinting off) - no luck.

For now I added a xslt in page2xhtml.xsl that inserts a comment between the opening and closing tag of an empty a (a hack, but it works for now).

That's the snippet I use:

<!-- this prevents anchors from collapsing -->
<xsl:template match="xhtml:[EMAIL PROTECTED]'body']//xhtml:a">
 <xsl:element name="{local-name()}">
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
<xsl:if test="string-length(.) = 0"><xsl:comment> </xsl:comment></ xsl:if>
  </xsl:element>
</xsl:template>


sorry for the noise

Jürgen


null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

[EMAIL PROTECTED]
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to