|
Subject: Re: [xsl] problem matching attribute From: Ann Marie Rubin <Annmarie.Rubin@xxxxxxx> Date: Tue, 16 Nov 2004 11:35:22 -0500 |
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: [xsl] problem matching attribute</xsl:template>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] problem matching attribut, David Carlisle | Thread | Re: [xsl] problem matching attribut, David Carlisle |
| Re: [xsl] Dynamic processing of xml, Anton Triest | Date | Re: [xsl] problem matching attribut, David Carlisle |
| Month |