|
Re: How can I pass a node as parameter to translets for XSLTC-Processor: msg#00038java.helma.antville.user
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> |
|---|---|---|
| Previous by Date: | RE: [Announce] Escaping double quotation marks in XSL, Brian Minchau |
|---|---|
| Next by Date: | Java XML : The Sum of all nightmares!!, Vinicius Carvalho |
| Previous by Thread: | Re: [Announce] Escaping double quotation marks in XSL, Brian Minchau |
| Next by Thread: | Java XML : The Sum of all nightmares!!, Vinicius Carvalho |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |