bsuh / node_xslt

a simple XSLT addon for node
zlib License
71 stars 17 forks source link

transformedString parameters #26

Closed tcdaly closed 10 years ago

tcdaly commented 10 years ago

Where the documentation for 'transformedString' says, '// * parameters: an array of parameters to be passed to the stylesheet. length must be multiple of 2.', what are the possible parameters that can be passed?

andreyvital commented 10 years ago

@tcdaly

It's like variables. The length must be multiple of 2 because the format are key-value pairs.

In your XSLT you can simply use these parameters.

<hello><xsl:value-of select="$world" /></hello>
tcdaly commented 10 years ago

Thank you for the info.