RE: [xsl] Doctype and namespaces in source/generated files

Subject: RE: [xsl] Doctype and namespaces in source/generated files
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 28 May 2004 23:50:28 +0100
> In XSLT 2.0, you can use (if I interpret correctly)
> 
> <xsl:stylesheet ... 
> xpath-default-namespace="http://www.w3.org/1999/xhtml";>
> 
> then a simple:
> 
> <xsl:template match="*">
> 
> should have the same effect as the above.
> 

No, match="*" matches any element regardless of its name. You can match any
element in the XHTML namespace by writing

<xsl:template match="x:*" xmlns:x="http://www.w3.org/1999/xhtml";>

either in 1.0 or 2.0.

Michael Kay

Current Thread