logo       

Re: How can I pass a node as parameter to translets for XSLTC-Processor: msg#00038

java.helma.antville.user

Subject: Re: How can I pass a node as parameter to translets for XSLTC-Processor


Return DTMAxisIterator instead of XNodeSet. That should help solve the issue.
Here's the method I use to convert a Document object and pass it as a
parameter to the translet.

private DTMAxisIterator convertDocumentToNodeSet(Document document)
throws TransformerException
{

DOMSource domSource = new DOMSource(document);
XSLTCDTMManager mgr = new XSLTCDTMManager();
DTM dtm = mgr.getDTM(domSource, false, null, true, true);
int dtmRoot = dtm.getDocument();
DTMAxisIterator iter = dtm.getAxisIterator(Axis.SELF);
iter.setStartNode(dtmRoot);

return iter;
}
--
View this message in context:
http://www.nabble.com/How-can-I-pass-a-node-as-parameter-to-translets-for-XSLTC-Processor-tf3121689.html#a13482151
Sent from the Xalan - J - Users mailing list archive at Nabble.com.




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise