[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Copying Groups of Attributes

Subject: Re: Copying Groups of Attributes
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 13 Feb 2001 12:58:48 +0000
copying groups
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.