Re: passing array-like information to XSLT

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
Alex Iskold wrote:

> We have an XML document which looks like this:
> 
> <items>
>    <item>
>    <item>
>    ...
> </items>
> 
> We are currently transforming this document using XSLT in Mozilla and
> now need to pass additional information, namely the keys for each item.
> 
> It does not seem like we can pass an array as an argument to the stylesheet,
> it also does not seem like we can pass more than one XML document.

You can have secondary XML input documents by using the XSLT document 
function <http://www.w3.org/TR/xslt#document>. And with Mozilla you can 
pass in an XML document as a parameter to the transformation.



-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
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.