xsl-list
[Top] [All Lists]

Re: 'apply-templates' on parameter of 'call-template'

2004-04-09 13:40:46
Not only what Ken says, but

At 02:03 PM 4/9/2004, he wrote:
As to why I want to do this particularly horrible thing, put it down to someone else's questionable design decisions. If the nodes that I want to 'surround' were in the XML rather than the XSL, this would be trivial.

But XSL *is* XML so you can use the document() function to get at the nodes of your stylesheet.

Nor is it necessarily so horrible. It's really a primary use case for document() if you allow that querying the stylesheet itself isn't really so different from querying a third file of some sort (and configuring stuff in third files is quite normal).

Note that this is all to change in XSLT 2.0. There you will be able transparently to process your own results, and all kinds of mayhem will be possible.

Cheers,
Wendell


___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_
    "Thus I make my own use of the telegraph, without consulting
     the directors, like the sparrows, which I perceive use it
extensively for a perch." -- Thoreau