Re: Iterators, Enumerations and Arrays

Mike Brown <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Mark R. Diggory wrote:
> I'm trying to write an extension for Java XSLT Engines (primarily Saxon 
> and Xalan) in have a java class which I access using the generic "java:" 
> namespace, I need to iterate over both an Enumeration and an Array to 
> produce a node-set. I'd like to do this without having to directly use 
> any classes of Xalan or Saxon.
> 
> Is there a way I can either produce a nodeset in my java class? Or is it 
> possible to pass back a org.w3c.Node and have it used to produce a nodeset?

AFAIK, there is no standard interface for implementing XPath node-set objects
or creating them from Node instances. Each processor has its own way of doing
things. You'll have to use the processor-specific classes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.