This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Copying Groups of Attributes
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Copying Groups of Attributes
- From: Jeni Tennison <mail at jenitennison dot com>
- Date: Tue, 13 Feb 2001 12:58:48 +0000
- Organization: Jeni Tennison Consulting Ltd
- References: <200102131221.NAA27724@mail.informatik.hu-berlin.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi Oliver,
> Oh, a little mistake made by Jeni?
Could well be...
>> <xsl:template match="p">
>> <p>
>> <xsl:copy-of select="@*[name() = $coreattrs]" />
>> </p>
>> </xsl:template>
>
> $coreattrs is a node-set of nodes whose string-value is ... the
> empty string. You wanted to compare with the name attribute.
...and is. I'd originally had:
> So either
> document('definitions.xml')//attgroup[@name = 'coreattrs']/attribute/@name
then went and edited the variable definition without changing its use.
I meant:
> or
> <xsl:copy-of select="@*[name() = $coreattrs/@name]" />
Sorry,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list