Murray Altheim wrote:
Elliotte Harold wrote:
Somewhere deep in my DOM code, an attribute is losing its type. That is
it's going from being an ID to being no type at all, as I can see in the
debugger. However, I'm having a very hard time figuring out where and
why this is happening. Can anyone suggest what operations in Xerces are
likely to cause an Attr to lose its type? Or, more properly, which
operations don't preserve attribute type: cloning? importing? what?
The type for an attribute is declared in its schema (e.g., its DTD).
If during processing you are either losing the connection to the
original schema, or you have validation turned off, the processor
won't know that a specific attribute has been declared as an ID.
This was a big, known problem with both XML (where well-formed
documents have no schema but people still wanted IDs), and in XHTML,
where the same problem existed when XHTML documents are processed
without the processor having access to the schema. Unfortunately,
like character entities, the W3C has never provided a realistic
alternative for how things were done in SGML. (Not that I think the
way things are done in SGML (and now XML) is in any way problematic.)
Elliote,
I rushed off an answer to that before looking to see who wrote it.
Sorry. But without preaching to you, it's still likely that you've
got your validation turned off. Try inserting a println to see if
just prior to where you're noticing the problem you still have a
DOM DocumentType available. My guess is that you don't. Then step
back through to figure out where it's getting lost.
Best guess...
Murray
......................................................................
Murray Altheim http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK .
The Rise of Pseudo Fascism -- David Neiwert
Part 1: The Morphing of the Conservative Movement
http://dneiwert.blogspot.com/2004_09_19_dneiwert_archive.html#109028353137888956
Part 2: The Architecture of Fascism
http://dneiwert.blogspot.com/2004_09_26_dneiwert_archive.html#109563628314780505
Part 3: The Pseudo-Fascist Campaign
http://dneiwert.blogspot.com/2004_10_03_dneiwert_archive.html#109596147171278590
Part 4: The Apocalyptic One-Party State
http://dneiwert.blogspot.com/2004_10_10_dneiwert_archive.html#109694976530359103
Part 5: Warfare By Other Means
http://dneiwert.blogspot.com/2004_10_17_dneiwert_archive.html#109755467135245579
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]