You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Indrajit Bhattacharya <in...@rediffmail.com> on 2007/03/03 16:03:40 UTC
Re: Re: Re: XSLT question
Hi Dave,
Awaiting your reply.
Another query: When I call writeToString() method of the DOMDocument and pass a DOMNode to the function, the resulting string gives the string equivalent of the DOM node, but it also gives the namespaces information as xmlns attribute. This I want to avoid. Please tell me how to do that.
I am posting it here, as I did not find any other user group that I can post there; I did not get the URL to subscibe to the xerces user list as well.
Thanks in advance.
Indrajit
On Tue, 27 Feb 2007 Indrajit Bhattacharya wrote :
>Dave,
>
>Another observation:
>Those extra whitespaces are not coming when I do file to file transform using the same XSL file.
>Only when I parse the same file, and do DOMDocument to file transform, those whitespaces are coming.
>So, it seems that XSL is okay. Isn't it ?
>Is any setting required on the DOM side ? Please let me know what is that.
>
>-Indrajit
>
>
>On Mon, 26 Feb 2007 David Bertoni wrote :
> >Indrajit Bhattacharya wrote:
> >>Dave,
> >>
> >>XMLPlatformUtils::Terminate() problem is solved. Thanks very much for your suggestions.
> >>
> >>For the second part, I am attaching two XML snippets, original one and after transform.
> >>
> >...
> >
> >Without seeing the stylesheet, it's difficult to know why you are getting extra whitespace.
> >
> >Dave
Re: XSLT question
Posted by David Bertoni <db...@apache.org>.
Indrajit Bhattacharya wrote:
> Hi Dave,
>
> Awaiting your reply.
And still you did not show us the stylesheet, so I have no idea what might
be going on. Also, I have no idea why using the Xerces-C wrapper would
result in different behavior. It could be a bug in the Xalan-C wrapper
classes, or it could be a bug in your code. I just don't have enough
information to answer your question.
> Another query: When I call writeToString() method of the DOMDocument and
> pass a DOMNode to the function, the resulting string gives the string
> equivalent of the DOM node, but it also gives the namespaces information
> as xmlns attribute. This I want to avoid. Please tell me how to do that.
> I am posting it here, as I did not find any other user group that I can
> post there; I did not get the URL to subscibe to the xerces user list as
> well.
You should subscribe to the Xerces-C user mailing list:
http://xml.apache.org/mail.html#xerces-c-user
However, what you want do do is not possible using any standard XML
serializer, since the namespace information is an intrinsic part of the
document.
Dave