Thomas, thanks for your comments.
This result was actually produced before I added any filter to the DOM
tree -- namely, I scaned ALL_NODE along the path.
Currently I'm upgrading to the new release of batik 1.5.  Maybe I will ask
for your advice later on.

Cheers,
Judy



----- Original Message -----
From: "Thomas DeWeese" <[EMAIL PROTECTED]>
To: "Batik Users" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 7:01 AM
Subject: Re: two DOM tress from one SVG file?


> Judy Qiu wrote:
> > Hello,
> >
> > Can anybody help out with the problem I met with? The list is quite
> > long... I will try to split the file into multiple mails.
>
>     So I think there is a bug somewhere in your code or else I don't
> understand what the traces are showing (which is very possible).  From
> your trace in the client:
>
> getNodeItem(currentnode(a), xpath[4](1));
> +++collaborativesvgviewer.others.NodePathSupport.java==>>getNodeItem()==>>
i=0, n.getNodeName()=#text
>
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree
==>>tempnode = #text
>
+++collaborativesvgviewer.others.NodePathSupport.java==>>getElementofDOMTree
==>>tempnode = getNodeItem(currentnode(#text), xpath[5](1));
> j
>
> Why does this get the #text node?  it seems pretty clear from
> all the other cases you skip text nodes in your counts.  So child '1' of
> the 'a' should skip the whitespace #text node and get the 'text' element
(that
> you want).
>
> The only explination I can think of is that you have some sort of a
> "hack" that says if it is asking for child '1' include text nodes
> (otherwise it isn't clear how you expect to address them).  But without
> seeing the source I can't help you any more than this.
>
> Good luck!
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to