Re: passing array-like information to XSLT
Peter Van der Beken <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| 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, Depends on how you're doing the transform and on the version of Firefox you're using, 1.5 and 2.0 (Gecko 1.8 and up) should allow nodelists and arrays of nodes as values for parameters through setParameter. See http://developer.mozilla.org/en/docs/The_XSLT/JavaScript_Interface_in_Gecko:Setting_Parameters and https://bugzilla.mozilla.org/attachment.cgi?id=191485 Peter