Subject: RE: 2.7.2 How to use /quote in XSL (was RE: xsl + xsl -- xsl)
From: "Vun Kannon, David" <dvunkannon@xxxxxxxx>
Date: Mon, 14 Dec 1998 10:47:23 -0500
|
Very nice. Now what if the output stylesheet also has to process
XSL, could you Ping-Pong back and forth between the xsl and xsl_ namespaces,
or do you have to burn a namespace for every iteration? I was re-reading
Stuart Kaufman's Origin of Order last night, specifically his description of
autocatalytic networks and Fontana's AlChemy and the concept of random
string grammars. It made me wonder if a stylesheet that was applied to
itself could serve as the host to a set of templates that matched and
transformed each other until they became a network of reinforcing
transformations, a metabolism.
Artificial Life, not your average use of XSL.
Cheers,
David vun Kannon
> -----Original Message-----
> From: Paul Prescod [SMTP:paul@xxxxxxxxxxx]
> Sent: Saturday, December 12, 1998 4:48 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: 2.7.2 How to use /quote in XSL (was RE: xsl + xsl --
> xsl)
>
> Francois Belanger wrote:
> > Does anyone knows how to use /quote to be able to output XSL with XSL?
>
> Input:
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
>
> <xsl:template match="/" xmlns:xsl_="http://www.w3.org/TR/WD-xsl/quote">
> <xsl_:stylesheet>
>
> </xsl_:stylesheet>
> </xsl:template>
>
> </xsl:stylesheet>
>
> Output:
>
> <xsl_:stylesheet xmlns:xsl_="http://www.w3.org/TR/WD-xsl"/>
>
> Despite the funny name for the output namespace, it maps to the real XSL
> namespace and can thus be used as an XSL stylesheet. Add some template
> rules and you are off to the races!
>
> --
> Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
> http://itrc.uwaterloo.ca/~papresco
>
> "Sports utility vehicles are gated communities on wheels" - Anon
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|