cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerard van Enk" <gerard.van....@eo.nl>
Subject RE: Extended-XSLT ?
Date Sat, 29 Jan 2000 10:18:47 GMT
> "E-XSLT" is a term that's kind of been coined along the
> way during discussion on this list. It stands for:
>
> "XSLT with tag libraries of Extension Elements"
>
> The XSLT Extension Element feature is documented
> in the spec at:
>
> http://www.w3.org/TR/xslt#extension-element
>

Ah...I overlooked it when reading the spec....maybe it's a good idea for me
to read the whole spec again ;-)

> This defines how a stylesheet/transform can
> identify "extension-element-prefixes" that
> key the XSLT Processor into the fact that
> certain XML namespaces represent libraries
> of extension elements like:
>
>   <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                  xmlns:quickquotes="urn-quickquotes"
>                  version="1.0">
>      :
>   <quickquotes:get-quote symbols="AAPL GE HLTH"/>
>      :
>
> The implementation of the "get-quote"
> extension element in the "mylib" library
> gets a chance to do arbitrary processing and
> then (perhaps) write some XML nodes as
> its output into the result page.
>
> So the result might be:
>
>       :
>     <quote>
>       <ticker>AAPL</ticker>
>       <price>105.62</price>
>     </quote>
>     <quote>
>       <ticker>GE</ticker>
>       <price>136.00</price>
>     </quote>
>     <quote>
>       <ticker>HLTH</ticker>
>       <price>72.88</price>
>     </quote>
>        :
>

Thanks for the example.....it made things clear.

Gerard


Mime
View raw message