thanks for the explaination Carsten. I finally palinly copied the needed
templates into my stylesheet, rather than writing more stylesheets ;-) as I
thought of too.

----- Original Message -----
From: "Carsten Ziegeler" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 3:15 PM
Subject: RE: xsl variable and sunshine getxml


>
>
> > -----Original Message-----
> > From: Barbara Post [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 20, 2002 2:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: xsl variable and sunshine getxml
> >
> >
> > c2.0.3..
> >
> > I am surprised that :
> >
> > <sunshine:getxml context="MyContext" path="/root/lkfmPageTitle"/> works
> > while :
> >
> > <variable name="foo">
> > <sunshine:getxml context="MyContext" path="/root/lkfmPageTitle"/>
> > </variable>
> > <xsl:value-of select="$foo"/>
> >
> > does not...
> >
> sunshine:getxml is processed by the sunShine transformer and not the
> stylesheet.
> So at the time, the xsl:value-of is evaluated, the sunShine transformer
did
> not run, so the value-of is built over the element <sunshine:getxml>.
>
> One solution is to do a three stage processing:
> 1. A pipeline with a stylesheet followed by the sunshine transformer
>    followed by a stylesheet
> 2. Adding sunshine:getxml in the first stylesheet
> 3. the sunShine transformer replaces the element with the value
> 4. the second stylesheet can do a value-of
>
> HTH
> Carsten
>
> > I need to pass the value to a template (of an imported reused
> > stylesheet...).
> >
> > Thanks...
> >
> > Babs
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question  has not already been answered in the
> > FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to