Re: [xsl] Omitting multiple namespaces in html output tag

Subject: Re: [xsl] Omitting multiple namespaces in html output tag
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 01 Feb 2003 20:30:35 +0100
Dan Cederholm wrote:
Hello - I'm generating xhtml documents with xslt.  My xml source document
has several namespaces (dc:, rdf:, etc.).   I realize I must declare these
in the xsl stylesheet, along with the xhtml default namespace.  The problem
is, all the namespace declarations are put within the <html> tag thereby
breaking validation of the result page.

You'll probably need <xsl:stylesheet ... exclude-result-prefixes="dc rdf"> Check the spec for details: http://www.w3.org/TR/xslt#stylesheet-element

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread