Sonny Sukumar wrote:
> Now here's the more general thing I'd like to do... The XML doc I'm
> transforming has a tag like this:
>
> <rp:content replace-with="navigationMenu"/>
>
> and, using my XSL stylesheet, I want to transform it to this:
>
> <cinclude:include src="someSpecificSourceName"/>
>
> The catch (and why I'm using xsl:params) is that the "src" for the
> <cinclude:include> should be an xsl:param passed into the XSL
> stylesheet
> with the "navigationMenu" name (in this example).
>
> So I'm trying to write a template to do this. Here's what
> I'm trying, but
> is not working:
>
> <xsl:template match="rp:[EMAIL PROTECTED]">
> <cinclude:include src="[EMAIL PROTECTED]"/>
> </xsl:template>
>
> This is the output:
>
> <cinclude:include
> xmlns:cinclude="http://apache.org/cocoon/include/1.0"
> src=""/>
>
> Note the src="". What am I doing incorrectly?
You can't do nested attribute values in XSLT. It seems to me you should just
use:
<xsl:template match="rp:[EMAIL PROTECTED]'navigationMenu']">
<cinclude:include src="{$navigationMenu}"/>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]