cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Burton" <ross.bur...@mail.com>
Subject Re: [C2] Stylebook features
Date Tue, 23 May 2000 21:22:47 GMT
> >   <xsl:template name="header">
> >     <xsl:param name="id"/>
> >     <xsl:param name="source"/>
> >     <xsl:param name="label"/>
> >     <xsl:param name="type"/>
> >
> >     <create source="{$source}" target="graphics/{$id}-header.jpg"
> > producer="parser" printer="image">
> >       <processor name="xslt">
> >         <parameter name="stylesheet"
> > value="sbk:/style/stylesheets/document2image.xsl"/>
> >       </processor>
> >     </create>
> >   </xsl:template>
>
> whoa! is this part of the XSLT spec or is it Stylebook specific. I mean
> the ability to apply a separate stylesheet to some element (subtree of
> elements) in XML document and save the results to disk or include it in
> the doc, instead of the original element.

<create> as far as I know is a Stylebook tag (I'm guessing this but it is
not in the XSL namespace so can't be part of the XSL spec).

> What I would like to do is to hand off the processing of tag2 to
> subSheet.xsl instead of processing it within rootSheet.xsl. And after
> processing, tag2 would be replaced with whatever contents come out of
> transformation with subSheet.xsl:
> <root stylesheet="rootSheet.xsl">
>     <tag1 />
>     <tag2 stylesheet="subSheet.xsl">
>         <subtag1 />
>     </tag2>
> </root>
>
> The example is probably very incorrect from the syntax point of view,
> but hopefully you understand what I mean...

I don't know how to do this but you may want to look at the spec,
http://www.w3.org/TR/xslt, specifically xsl:import and xsl:include.

Ross Burton


Mime
View raw message