Re: setting parameters on XSLT Prozessor
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Spank Master wrote: > But another question on the type of parameter. I can not set a type by > declaring it in XSLT or using setParameter, can I ? If you want to have a string variable or parameter where you preset the value in XSLT then always use e.g. <xsl:param name="paramName" select="'string goes here'" /> don't use <xsl:param name="paramName">string goes here</xsl:param> Only the first way gives you a string value. If you use setParameter then the type depends on what you pass in, if you pass in a JavaScript string then for XSLT/XPath it is an XPath string. -- Martin Honnen http://JavaScript.FAQTs.com/