struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Van Horn" <matt...@ashleyassociates.co.jp>
Subject RE: Struts from XSLT
Date Wed, 28 Jul 2004 09:48:11 GMT
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:Johan.Wasserman@bcx.co.za] 
> Sent: Wednesday, July 28, 2004 6:25 PM
> To: user@struts.apache.org
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message