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.