Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Empty element match >Thread Next - Re: Empty element match Re: Empty element matchTo: NULL Date: 7/1/2005 6:41:00 PM
Tjerk Wolterink wrote:
> In page.xsl there is a rule like this:
>
> <!--
> ! All html should remain html
> !-->
> <xsl:template match="*[namespace-uri(.)='' or
> namespace-uri(.)='http://www.w3.org/1999/xhtml']">
> <xsl:copy>
> <xsl:for-each select="@*">
> <xsl:copy/>
> </xsl:for-each>
> <xsl:apply-templates select="./node()"/>
> </xsl:copy>
> </xsl:template>
>
>
> Maybe this rule forces <br/> to convert to <br></br>
If you really want HTML output then you should strip the namespace from
XHTML elements e.g.
<xsl:template match="xhtml:*">
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<xsl:element name="{local-name()}">
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:element>
</xsl:template>
--
Martin Honnen
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
