Hi,
I am working with JDK1.6
I have big java object-collection of 1000 records (this is object of xjc
generated classes) which needs to be marshalled to xml and also need to
apply xslt to the same.
I am trying to marshall individual records using JAXBElement within this
collection and append to the xml. For this I have used Jaxb_Fragment
property and XMLStreamWriter so that I can marshall the xml in chunks and it
is working fine.
Then second thing is to apply stylesheet using transformerHandler .
But I am not able to apply stylesheet while doing this.
[marshaller.marshal( new JAXBElement(new QName("record"),xyz.class,obj),
transformerHandler );]
Here transformerHandler result is StAXResult.
[transformerHandler .setResult(stAXResult)]
Is it possible to apply stylesheets when working with XML Stream APIs or it
is done from root to end at one go.
TIA
--
View this message in context: http://www.nabble.com/Is-it-possible-to-apply-xslt-while-marshalling-with-jaxb-fragment-tp16993169p16993169.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.