Elliotte Harold wrote:
Murray Altheim wrote:
So in this particular case, it isn't so much an issue as to whether
IDness should or should not persist -- it seems clear that is should
so long as the schema has not been explicitly removed -- but more
about what the heck happened to the schema. I mean, is it on holiday
in Jamaica or something? Where did it go? I think that's the problem
Elliote is up against. He seems to desire validation (or at least
ID constraints, which are a form of validation declared by a schema).
Actually no, I don't. All I want is for getElementByID to work so I can
implement XPointer in my XInclude engine. Validity I don't give two
hoots about.
Well, perhaps we're just quibbling over terminology, but a schema is
simply a set of constraints. One constraint is the ID namespace
constraint. I was trying to say that you do care about validity for
this one particular constraint. IOW, you could have a schema that
merely declared the ID namespace and be done with it. I'm certain
there are some industry DTDs out there that only do this. Point is,
the XML WG knew this was a problem (i.e., being able to maintain
ID-ness without having a schema to declare it), but after what,
five years? the W3C still hasn't come up with a solution. They could
have done something simple and ugly like having an 'xml:id' attribute
that we could use, but instead we either use what we had before
(DTDs) or mess with XML Schema, RELAX-NG, etc. all of which are
overkill for this one, simple problem.
Interestingly in trying to develop a simplified test case I did try
explicitly removing the schema (DocumentType), and importing the element
into a schema-less (DOCTYPE-less) new document. Neither lost the IDness.
There may be some weird interaction between multiple operations that's
causing the IDness to go bye-bye, but so far I can't spot it. I've tried
various combinations of System.out.println with little luck so far. :-(
In looking at your other messages (which have arrived now), I see
that it was a cloning issue. I think the US government is going to
ban that, so you won't have to worry about it soon.
Murray
......................................................................
Murray Altheim http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK .
A schoolteacher at a Bush event was on her way to the bathroom when
she was stopped by a volunteer and told she wasn't welcome. The
volunteer pointed to her T-shirt and said it was 'obscene'. She and
her two friends (also wearing the same shirts) were escorted out by
police officers and threatened with arrest if they did not comply.
The T-Shirts read: 'Protect Our Civil Liberties'"
Shutting Them Up
http://dneiwert.blogspot.com/2004_10_17_dneiwert_archive.html#109830472470609571
Dismantling Democracy
http://dneiwert.blogspot.com/2004_10_17_dneiwert_archive.html#109830622308006215
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]