From: Andrew Welch <awelch@pi...> - 2002-07-16 17:02:45
Is it possible to extract information from the xml file while it is
being parsed into saxon, in the middle of a normal transformation? I
transform in the usual way, but I need to pass the value's of a few
elements to another class.
Would it be best to sax parse the xml first, get the info I want, then
pass it to saxon for the usual transformation?
Or, are there any methods available to access nodes while they are in
Saxon's internal structure?
Take this xml file and transform it with any stylesheet (say a basic
identity transform), but after parsing the xml pass the information
contained in <node> to another java class.
Of course, I could always sax-parse the xml first to get the info, then
parse it again for the normal transform... is it possible to combine the
I guess my options come down to:
sax parse, then transform in usual way (cumbersome)
pass my own sax-parser (is it xml-reader) to saxon to use
access saxons internal tree
call custom extensions from within the stylesheet (would this require
writing to the end users classpath?)
so many questions, so little knowledge :)
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002