[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: determining ID-ness in XML

  • From: Manos Batsis <m.batsis@b...>
  • To: ldodds@i...
  • Date: Fri, 02 Nov 2001 17:17:04 +0200

css2 id
> -----Original Message-----
> From: Leigh Dodds [mailto:ldodds@i...]
> 
> 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);

xed\:myIdAttr
{
/* 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,

Manos

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2007 All Rights Reserved.