Reading output xml in the same XSLT, which perform the transformation

T

titusjava

I am having a XSLT which transforms an input XML to transformed XML.
I want to get the count of some nodes in the transformed XML, in the
same XSLT.
Is it do able?. Is it possible to read Output XML, in the same XSLT
which perform the transformation.
 
M

Martin Honnen

I am having a XSLT which transforms an input XML to transformed XML.
I want to get the count of some nodes in the transformed XML, in the
same XSLT.
Is it do able?. Is it possible to read Output XML, in the same XSLT
which perform the transformation.

Only with an extension function which converts a result tree fragment to
a nodeset. You would store the result tree fragment in a variable and
then use
count(exsl:node-set($variable))
see
<http://www.exslt.org/exsl/functions/node-set/index.html>
 
D

Dimitre Novatchev

No xxx:node-set() extension function is necessary in XSLT 2.0 as there's no
RTF type there.

Cheers,
Dimitre Novatchev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top