You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Torsten Curdt <tc...@dff.st> on 2001/05/05 20:03:02 UTC

view-source parameter

I was just wondering what happens when I give
a parameter to a transformer like in the std
sitemap:

       <map:transform src="stylesheets/dynamic-page2html.xsl">
          <parameter name="view-source" value="docs/samples/forms/employee.xsp"/>
       </map:transform>

For the XSLT transformer - will this parameter be accessible inside
the XSLT only via xsp-request taglib or directly as XSLT parameter?
--
Torsten


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: view-source parameter

Posted by Allan Erskine <a....@cs.ucl.ac.uk>.
> > In your sample a variable named "view-source" will be
> accessable as a
> > xslt variable. You cannot use taglibs inside an xslt transformation
> > (??)
>
> Doh! Of course not...

This is from the samples - it's the sneaky bit that allows you to view the
source of a sample by following its hyperlinked title....

> -----Original Message-----
> From: tcurdt@dff.st [mailto:tcurdt@dff.st]
> Sent: 05 May 2001 23:05
> To: cocoon-dev@xml.apache.org
> Subject: Re: view-source parameter
>
>
> > > I was just wondering what happens when I give
> > > a parameter to a transformer like in the std
> > > sitemap:
> > >
> > >        <map:transform src="stylesheets/dynamic-page2html.xsl">
> > >           <parameter name="view-source"
> > value="docs/samples/forms/employee.xsp"/>
> > >        </map:transform>
> > >
> > > For the XSLT transformer - will this parameter be
> accessible inside
> > > the XSLT only via xsp-request taglib or directly as XSLT
> parameter?
> >
> > In your sample a variable named "view-source" will be
> accessable as a
> > xslt variable. You cannot use taglibs inside an xslt transformation
> > (??)
>
> Doh! Of course not...
>
>
> -------------------------------------------------
> This mail sent through IMP: imp.dff.st
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: view-source parameter

Posted by tc...@dff.st.
> > I was just wondering what happens when I give
> > a parameter to a transformer like in the std
> > sitemap:
> >
> >        <map:transform src="stylesheets/dynamic-page2html.xsl">
> >           <parameter name="view-source"
> value="docs/samples/forms/employee.xsp"/>
> >        </map:transform>
> >
> > For the XSLT transformer - will this parameter be accessible inside
> > the XSLT only via xsp-request taglib or directly as XSLT parameter?
> 
> In your sample a variable named "view-source" will be accessable as a
> xslt variable. You cannot use taglibs inside an xslt transformation
> (??)

Doh! Of course not...


-------------------------------------------------
This mail sent through IMP: imp.dff.st

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: view-source parameter

Posted by giacomo <gi...@apache.org>.

On Sat, 5 May 2001, Torsten Curdt wrote:

> I was just wondering what happens when I give
> a parameter to a transformer like in the std
> sitemap:
>
>        <map:transform src="stylesheets/dynamic-page2html.xsl">
>           <parameter name="view-source" value="docs/samples/forms/employee.xsp"/>
>        </map:transform>
>
> For the XSLT transformer - will this parameter be accessible inside
> the XSLT only via xsp-request taglib or directly as XSLT parameter?

In your sample a variable named "view-source" will be accessable as a
xslt variable. You cannot use taglibs inside an xslt transformation (??)

Giacomo

> --
> Torsten
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org