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
> > 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