Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Is it possible to have array like thing in xslt

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 1/10/2009 10:25:00 AM

"Manish Bafna" <ManishBafna@d...> wrote in message 
news:297F6002-8BC2-4046-9B20-4A9070065EAD@m......
> Hi Martin,
> I want to pass series of values say about 31 values to a template as a
> parameter.I would be grateful if somebody can suggest how can we have 
> array
> like thing in XSLT.Or is there any other way to do same thing?I want to
> achieve this using just xslt and javascript
> Thanks in advance for replying(as always)
> With Warm Regards.
> Manish Bafna.
>
Although you addressed your question to Martin I'll suggest an answer. 
Firstly, if you want cross browser, then it's best to use a ready built 
library. zXml or Sarissa for example should cope with this.
You'll have to study the documentation on how to add parameters to a 
transformation.
If you're using MSXML (IE only) then it has an addParam method: 
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltargumentlist.addparam.aspx
You can pass a nodeset to simulate an array or a serialised object.

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent