[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Doctype and namespaces in source/generated files

Subject: RE: Doctype and namespaces in source/generated files
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 28 May 2004 23:50:28 +0100
RE:  Doctype and namespaces in source/generated files
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.