Search the web
Sign In
New User? Sign Up
newsml-g2 · IPTC NewsML-G2
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Finding News Taxonomies [was: RE: Towards a TAG consideration of CU   Message List  
Reply | Forward Message #593 of 875 |
Re: Finding News Taxonomies [was: RE: Towards a TAG consideration of CURIEs]

Booth, David (HP Software - Boston) scripsit:

> I'm confused by your point #3 below, as it seems to be implying that a
> document without a DTD could legitimately have an attribute of type ID
> with value "123456", and after looking at the specs I don't see how it
> can. Did I miss something? Detailed analysis below.

An xml:id processor will report a constraint violation when it sees
"xml:id='123456'" in an element, but it will perform ID type assignment
anyway, as noted in Section 4 of the xml:id Recommendation.

In addition, a conformant XML processor must report an attribute declared
to be of type ID as having that type, no matter what the value may be.
For example, the document:

<!DOCTYPE items [
<!ATTLIST item id ID #IMPLIED>
]>
<items>
<item id="123456">...</item>
...
</items>

is not valid, but the id attribute of the item element is of type ID.
So you can use either xml:id or a (possibly partial) DTD to force
an attribute to be of type ID, and ignore any xml:id or validation errors.

Neither of these devices is available in valid XHTML documents, of course.

--
You are a child of the universe no less John Cowan
than the trees and all other acyclic http://www.ccil.org/~cowan
graphs; you have a right to be here. cowan@...
--DeXiderata by Sean McGrath



Mon Apr 9, 2007 9:50 pm

johnwcowan
Offline Offline
Send Email Send Email

Forward
Message #593 of 875 |
Expand Messages Author Sort by Date

... This: http://www.iptc.org/docs/newscodes.html#123456 is not legal, as "123456" is an illegal fragment identifier. Also, not every maintainer of a taxonomy...
Misha Wolf
wolf_misha
Offline Send Email
Apr 7, 2007
3:16 pm

... Not exactly. We can decompose this into three claims, two false and one true. 1) "123456" is an invalid fragment: false. If you look at the syntax rules...
John Cowan
johnwcowan
Offline Send Email
Apr 7, 2007
4:23 pm

... I'm out of my depth here. At the W3C AC meeting in Edinburgh, last year, I understood Henry to be stating that something like: ...
Misha Wolf
wolf_misha
Offline Send Email
Apr 7, 2007
4:36 pm

... An xml:id processor will report a constraint violation when it sees "xml:id='123456'" in an element, but it will perform ID type assignment anyway, as...
John Cowan
johnwcowan
Offline Send Email
Apr 9, 2007
10:16 pm

... A matter of opinion and/or taste. People do routinely work with invalid XML documents, which is the whole reason for introducing xml:id; xml:id processing...
John Cowan
johnwcowan
Offline Send Email
Apr 11, 2007
9:17 pm

... Which end of the hyperlink are we discussing? The use, within a News story, of a specified concept from a specified taxonomy, or the description of this...
Misha Wolf
wolf_misha
Offline Send Email
Apr 7, 2007
8:27 pm

... The latter. ... Why? It could just as well (perhaps better) be some XML + CSS. -- John Cowan cowan@... http://ccil.org/~cowan I must confess that...
John Cowan
johnwcowan
Offline Send Email
Apr 7, 2007
9:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help