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

Re: patterns and multiple namespaces

Subject: Re: patterns and multiple namespaces
From: "James Tauber" <jtauber@xxxxxxxxxxx>
Date: Wed, 29 Sep 1999 22:24:12 +0800
xslt multiple namespaces
> > Is there a more elegant solution that I've missed?
>
> there are solutions short of using three stylesheets but none are very
> nice.
> eg replace
>
> match="h1" by
> match="*[name(.)='h1' and (starts-with(namespace(.),$html-common-part))]"
>
> in all patterns of the stylesheet.

This approach might be bearable if XPath or XSLT were modified to make it
easier:

<xsl:ns prefix="h" uri-start="http://www.w3.org/TR/xhtml"/>
...
<xsl:template match="h:h1">...

but that's *definitely not* going to happen in 1.0 and probably not ever.

Another approach would be to add to all XHTML elements an attribute
"schema-family" with value "XHTML". It could be #FIXED in the DTD so no one
would ever have to type it, but you could say:

match="h1[schema-family='XHTML']"

James
--
James Tauber / jtauber@xxxxxxxxxxx / www.jtauber.com
Maintainer of : www.xmlinfo.com,  www.xmlsoftware.com and www.schema.net
<pipe>Ceci n'est pas une pipe</pipe>



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


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.