Re: [xslt] Splitting a result into subtrees

I see, only the standard DOM functions are available. Then it's a bit more complicated. Something like that:

$xpath = new DOMXpath($doc);
$node = $xpath->query("xpath_for_subtree_1")->item(0);
$subtree = new DOMDocument();
$part1 = $subtree->saveXML();

But that's basic DOM manipulation and doesn't really belong on this list.


Michael Ludwig wrote:
Nick Wellnhofer schrieb:

[...] Perl API [...]

my $part1 =
my $part2 =

The PHP API should provide similar functions.

Unfortunately, it doesn't. I guess I'd have
to use DOMDocument::getElementsByTagName or

Michael Ludwig
xslt mailing list, project page
xslt gnome org

aevum gmbh
rumfordstr. 4
80469 münchen

tel: +49 89 3838 0653

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]