xsl-list
[Top] [All Lists]

Re: Omitting multiple namespaces in html output tag

2003-02-01 12:30:35
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



<Prev in Thread] Current Thread [Next in Thread>