[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: "Simon St.Laurent" <simonstl@xxxxxxxxxxxx>
Date: Wed, 29 Sep 1999 11:15:21 -0400
xsl multiple namespaces template
At 10:24 PM 9/29/99 +0800, James Tauber wrote:
>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.

So we're kind of stuck, I guess.

>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']"

This one is actually pretty funny, sort of a creeping
architectural-forms-like use of attributes to get around the limitations of
attributes.  It does have the advantage of working, but seems like a
workaround that deeply violates the philosophy behind what's being gone
around.

There's also the problem noted in 5.8.2 of the CSS2 spec (which I'm
shamelessly quoting from another Ian Hickson message on www-style -
http://lists.w3.org/Archives/Public/www-style/1999Sep/0135.html):
# 5.8.2 Default attribute values in DTDs
#
# Matching takes place on attribute values in the document tree. For
# document languages other than HTML, default attribute values may be
# defined in a DTD or elsewhere. Style sheets should be designed so
# that they work even if the default values are not included in the
# document tree.

Given that not all documents being styled may have gone through a parser
that supports external subsets and PEs, this seems like wise advice.  Of
course, you could put it in the internal subset, but that's one declaration
per element - yuck!

I don't suppose they'd build that into the XHTML 1.0 DTD...


Simon St.Laurent
XML: A Primer (2nd Ed - September)
Building XML Applications
Inside XML DTDs: Scientific and Technical
Sharing Bandwidth / Cookies
http://www.simonstl.com


 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.