Re: Parse new nodes (nodes created on the fly)
Martin Honnen <[email protected]> Tue, 08 May 2007 13:27:12 +0200
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Mahomedalid wrote: > Is there some way to parse new elements created in the template? You can chain stylesheet and have the second stylesheet process the result of the first. However I don't think any browser allows that when using the xml-stylesheet processing instruction, rather you would need to use the XSLT processor API with script to run the transformations. Then there is the extension function esxl:node-set, Firefox 1.5 and Firefox 2.0 do not support it but support in Firefox 3.0 will be there, current nightlies do already support it: <http://www.exslt.org/exsl/functions/node-set/index.html> Using that extension function you can convert a result tree fragment into a node set and then for instance apply templates to it. -- Martin Honnen http://JavaScript.FAQTs.com/