Hello,]
How about <xsl:value-of select="."/> ?
Regards
marco
-----Original Message-----
From: Johan Wasserman - BCX - Infrastructure Services
[mailto:[EMAIL PROTECTED]
Sent: 28 July 2004 11:02
To: Struts Users Mailing List
Subject: RE: Struts from XSLT
Tried that approach unsuccessfully (output is "null"). Is your
suggestion factual (do you have it working that way)? Then maybe I'm
looking at a xalan version issue or something (I doubt, it's quite
current).
Aolso tried:
<xsl:template match="foo">
<bean:message key="<xsl:value-of select="name()"/>"/>
</xsl:template>
But that renders <bean:message key="bar"/> to the HTML output and struts
don't kick in.
-----Original Message-----
From: Matthew Van Horn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 28, 2004 11:48 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts from XSLT
Assuming an element:
<foo/>
If you are doing a XSLT transform, it would be:
<xsl:template match="foo">
<bean:message>
<xsl:attribute name="key"><xsl:value-of
select="name()"/></xsl:attribute>
<bean:message>
</xsl:template>
This will result in:
<bean:message key="foo"/>
-Matt
> -----Original Message-----
> From: Johan Wasserman - BCX - Infrastructure Services
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 28, 2004 6:25 PM
> To: [EMAIL PROTECTED]
> Subject: Struts from XSLT
>
>
> How do I assign output from xsl to bean:message or fmt:message.
>
> For example <bean:message key="<xsl:value-of select"name()"/>"/>
>
> I have tried using <fmt:message><xsl:value-of
> select"name()"/></fmt:message>
>
> It doesn't work.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]