[jdom-interest] Changing XML Declaration
John Muhlestein
jmuhlestein at i-link.net
Fri Sep 14 09:02:18 PDT 2001
I may be completely off base on this but I believe part of the problem is
that all the examples of stylesheets that I have seen do not actually have a
decalration. Something like the following
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
is actually the root element of the document not a declaration.
There is a <?xml-stylesheet ...?> type of declaration (actually a processing
instruction) which is used for embedding stylesheet infromation in a
different document.
I haven't actually tried this, but, it would seem intuitive to me that the
standard xml declaration <?xml version="1.0"?> should still be legal before
the <xsl:stylesheet ..> element since a stylesheet is just an xml document.
John
> -----Original Message-----
> From: a b [mailto:eagle_291 at yahoo.com]
> Sent: Wednesday, September 12, 2001 10:09 AM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] Changing XML Declaration
>
>
> Hello everyone,
>
> I'm pretty new to the XML world and would greatly
> appreciate it if someone could help me out by pointing
> me in the right direction. I'm trying to change the
> XML Declaration for a document that I've created in
> memory. In other words, the XML Declaration currently
> looks like this:
>
> -- <?xml version="1.0" encoding="UTF-8"?> --
>
> but I need it to look like this instead:
>
> -- <?xml:stylesheet type="text/xsl" href="somexs.xsl"
> version="1.0" encoding="UTF-8"?> --
>
> Is it possible to modify it the xml declaration to
> look like the line above?
>
> Here's a snippet of the code that I'm using to
> generate the document:
>
> SAXBuilder saxObj = new SAXBuilder();
> Document xmlDoc =
> saxObj.build(someProcedure.getClob(6).getAsciiStream());
> return xmlDoc;
>
>
> Thanks for your help...
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with
> Yahoo! Messenger
> http://im.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
More information about the jdom-interest
mailing list