Expanded names are not enough
Chris Maden
crism at oreilly.com
Thu Aug 6 21:42:34 BST 1998
[John Cowan]
> The parser can export an API for converting QNames to
> UniversalNames, which allows you to make the match. The real
> problem is more serious: as long as the same prefix can map to
> different namespaces in different part of the document, stylesheets
> that depend on prefixed names don't work. If a document maps the
> "foo" prefix to multiple namespaces, then in CSS1, if you have a
> rule:
>
> foo:p {indent 1em}
>
> just which foo:p is that? It has to be both, eliminating the whole
> utility of the local prefix.
Not true. In this context, foo:p has some universal name (URI + local
name), depending on the namespace map in effect when the CSS style
rules appeared or were included. This style rule applies to any
element with the same universal name, whatever prefix was used to get
it.
-Chris
--
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list