This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: strangeness with <xsl:variable>


--- "Devlin, Kurt" <Kurt.Devlin@westgroup.com> wrote:
> You could try using generate-id() for your name and href
> attributes.

How come I didn't do that before?  That's a lot easier then
my method . . .

> You got this backwards... You need to put the choose
> inside of the variable.
> In your example, the variable loses scope as soon as the
> choose block is
> finished.

 . . but if I would have done it right the first time (i.e.
with generate-id()) then I wouldn't have learned about the
variable scoping.

> I hope that helps.

It sure does.  Thanks Kurt.

Mike


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]