|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: patterns and 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








