Announcing support for <?xslt-param?>
Jonas Sicking <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
While this has been in the tree for some time, I don't think we ever announced it. Starting with Firefox 2.0.0.1 [1] it is now possible to specify parameters when using the <?xml-stylesheet?> processing instruction to apply xslt stylesheets. The new processing instruction <?xslt-param?> is used to specify parameters. For example <?xslt-param name="color" value="blue"?> <?xslt-param name="size" select="2"?> <?xml-stylesheet type="text/xsl" href="style.xsl"?> sets the parameter 'color' to 'blue' and the parameter 'size' to 2. Full documentation can be found at http://developer.mozilla.org/en/docs/XSLT:PI_Parameters Have fun! / Jonas [1] Unfortunately a bug was found in the initial release that causes a lot of select expressions crash (in a non-exploitable way). So while many expressions will work, some will not. This was fixed in 2.0.0.1. Using just value="..." will work fine in 2.0 though.