[ https://issues.apache.org/jira/browse/XALANJ-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12565150#action_12565150 ]
Gary Gregory commented on XALANJ-2057: -------------------------------------- Would this work as well when running Xalan in XSLTC mode? That's what we need here. > Transformer.setParameter should accept Source as an Object value > ---------------------------------------------------------------- > > Key: XALANJ-2057 > URL: https://issues.apache.org/jira/browse/XALANJ-2057 > Project: XalanJ2 > Issue Type: Improvement > Components: JAXP > Affects Versions: 2.7 > Reporter: elharo > Assignee: Henry Zongaro > > Saxon 8 has a nice feature whereby you can pass a TrAX SAXSource/DOMSource > etc. to the Transformer.setParameter method, Saxon converts that source into > its internal representation. That is, it will read from the source and build > the necessary representation of a node-set. This makes it relatively easy to > set parameters whose values are node-sets. > This is very useful for hooking up Xalan to other object models such as JDOM > and XOM. Currently these models can be transformed by wrapping the original > input document in a SAXSource. However, node-set parameters do not work the > same way. These have to be set by wrapping them in a DOM NodeIterator or > NodeList or Node. It would be more consistent and more convenient if > setParameter accepted a TrAX Source object as well. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]