Re: A whitespace issue in XML::LibXML
by Birgit Kellner other posts by this author
Jul 20 2007 12:08PM messages near this date
view in the new Beta List Site
Re: A whitespace issue in XML::LibXML
|
Re: A whitespace issue in XML::LibXML
& XSLT Vaclav Barta schrieb:
> On Friday 20 July 2007 20:27, Birgit Kellner wrote:
>
> > Petr Pajas schrieb:
> >
> >> First of all, why do you do that "by hand"? To get all text nodes
> >> from a subtree nicely concatenated, you can use e.g.
> >>
> >> $text = $node->findvalue('string(.)')
> >>
> > I should have been more specific on that. I'm not interested in all text
> > nodes, but in text node children of the element <seg>, and in text node
> >
> seg/text()
>
>
> > children of the element <span> that can be contained within <seg>. <seg>
> >
> seg/span/text()
>
> XPath may not be very perlish, but it's quite useful...
>
> Bye
> Vasek
>
>
Yes, but that wouldn't get me the proper sequence, no?
Consider:
<seg> This is <span>a cold breeze</span><note>Oh, and here's some text
which deals with a completely different subject-matter, say, bunny
rabbits on a balcony.</note> on an unbearably hot summer evening.</seg>
Birgit
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Birgit Kellner
Petr Pajas
Birgit Kellner
A. Pagaltzis
Vaclav Barta
Birgit Kellner
Richard E. Rathmann
Vaclav Barta
Petr Pajas
Vaclav Barta
Mark - BLS CTR Thomas
|