|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: problem matching attribute
this works:
<xsl:template
match="read-access/namespace-resource/security-role-mapping[attribute::name='consoleadmins']/user[attribute::name='guestadmin']">
<xsl:copy>
<xsl:attribute name="name">foo</xsl:attribute>
</xsl:copy>
</xsl:template>
I needed to match down to the specific attribute and use xsl:copy to
output the attribute name.
thanks,
Ann Marie
Ann Marie Rubin wrote:
>Hi Evan,
>
>I've tried all these combinations, but still don't get "foo" in the output. (Yes, I do have the basic identity code at the top of the stylesheet.)
>
>Any idea what could be wrong?
>
>thanks,
>
>Ann Marie
>
>
>
><!--<xsl:template match="read-access/namespace-resource/security-role-mapping[attribute::NAME='consoleadmins']/user[attribute::NAME='guestadmin']">-->
><!--<xsl:template match="read-access/namespace-resource/security-role-mapping/user/@name">-->
><xsl:template match="security-role-mapping[@name='consoleadmins']/user/@name[.='guestadmin']">
>
><!-- <xsl:attribute name="name">foo</xsl:attribute> -->
>
> <xsl:copy>
> <xsl:attribute name= "{@name}">foo</xsl:attribute>
> </xsl:copy>
>RE: problem matching attribute</xsl:template>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








