[
Lists Home |
Date Index |
Thread Index
]
I need to paginate, (reduce in size), certain nodes of an xml doc, say
x/y/z. This would evolve reading and writing nodes, and truncating the node
in question.
I had originally written an xslt to use an xpath expression, which works
fine. Problem is I need to do this for many doc, and the xpath expression
changes. Passing the expression failed as select=$varName will only work
for one node. See XSLT Programmer's Reference, 2nd Edition page 426.
So I am now writing this as a SAX Parser, (jaxp compliant). I can see how
to read and evaluate the nodes, but I have not seen yet how to write out the
second doc. Is this possible with the SAX2 library? Should I be looking at
XMLWritter extensions?
Thanks
john
|