Re: [xsl] Saxon removes namespace in XHTML output

Subject: Re: [xsl] Saxon removes namespace in XHTML output
From: Owen Rees <owen.rees@xxxxxx>
Date: Tue, 22 Aug 2006 17:01:36 +0100
--On Monday, August 21, 2006 23:52:19 -0700 M 1879 wrote:

<xsl:template match="description" mode="multi-descr">
     <p><xsl:apply-templates /></p>

Any idea what causes this? I confess that I am using a XSLT 1.0
stylesheet that uses an XSLT 2.0 element: (it works).

The p element inside the template is not inside anything that declares the default namespace so it is in no namespace. It retains its own (lack of a) namespace when the template is applied so is still in no namespace, and has to be declared as such, when the output is produced.

Owen Rees <owen.rees@xxxxxx>
Hewlett Packard Laboratories, Bristol, UK
tel: +44 117 312 9439 fax: +44 117 312 8924

Current Thread