[jdom-interest] builders not preserving namespace attributes
in xsl files
Elliotte Rusty Harold
elharo at metalab.unc.edu
Thu Sep 7 05:41:12 PDT 2000
At 10:23 PM -0500 9/6/00, Brett McLaughlin wrote:
>The fix, essentially, would be to add (back - we used to have this)
>something like:
>
>addNamespaceDeclaration(Namespace ns)
>
>onto the Element. We could then add these additional declarations to the
>Element, and it would be easy enough to print them out at the
>XMLOutputter level. Each Element, then, would presumably have a HashMap
>of declarations on it (other than the one that is intrinsic to it).
>
>You can take a look at this if you like - I'm bogged down, so the more
>help the merrier.
>
I am thinking about this problem, and will try to take a stab at
fixing it (and several related problems) this weekend. I'm not
familiar with the builder code so it may take me a while. However,
the trickiest part is getting the internal model right. We need to
allow arbitrary namespace declarations on arbitrary elements, and we
may need to maintain their locations. That's going to be tough given
how the code is structured currently.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible (IDG Books, 1999) |
| http://metalab.unc.edu/xml/books/bible/ |
| http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://metalab.unc.edu/javafaq/ |
| Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/ |
+----------------------------------+---------------------------------+
More information about the jdom-interest
mailing list