[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [xml-dev] Re: determining ID-ness in XML
- From: Manos Batsis <firstname.lastname@example.org>
- To: email@example.com
- Date: Fri, 02 Nov 2001 17:17:04 +0200
> -----Original Message-----
> From: Leigh Dodds [mailto:firstname.lastname@example.org]
> Something else to consider:
> CSS provides a Selector based on ID .
> The text at  acknowledges that ID linking is unreliable
> (DTD might not be processed or might not exist), and presents
> a work around: using attribute selectors.
> Looks to me that any solution to the 'ID problem' will have to work
> with CSS, and presumably impact the CSS specification as well, yes?
>  http://www.w3.org/TR/REC-CSS2/selector.html#id-selectors
Yes you cannot be sure that an UA will read the DTD (if any).
Attribute selectors will work just fine as long as you know the
attribute name and namespace of your ID attribute of choice:
@namespace xed url(http://www.foo.org/ns/manos/appSpace/xmledit1);
/* style rules here */
IMHO though, this is not really a problem. From what I understand, it
was anticipated and somewhat ignored back when the CSS selector syntax
was designed. That's because using attribute selectors will be far more
safe than any mechanism trying to figure out what attribute plays the
role of ID anyway.