Hello Barbara, that's a simple XSL problem.
With > <variable name="foo"> > <sunshine:getxml context="MyContext" path="/root/lkfmPageTitle"/> > </variable> you create a Result Tree Fragment (RTF), not a node set. A RTF contains the nodes, but you can't operate on them like on a node set. It behaves more like a string. But in your variable you have no text node, so there is no text to operate on. What you need is <xsl:copy-of select="$foo"/>. There is only one problem: Which transformer is executed earlier? Regards, Joerg Barbara Post wrote: > 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... > > I need to pass the value to a template (of an imported reused > stylesheet...). > > Thanks... > > Babs -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de --------------------------------------------------------------------- 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]>
