OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [xml-dev] Re: determining ID-ness in XML

> -----Original Message-----
> From: Leigh Dodds [mailto:ldodds@ingenta.com]
> Something else to consider:
> CSS provides a Selector based on ID [1]. 
> The text at [1] 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?

> [1] 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.

Kindest regards,