xsl-list
[Top] [All Lists]

Re: key(), generate-id question

2002-11-10 10:40:26

Dear Eliot,

    Thank you for your reply.

You can't control how generate-id() works, but you could do something
like write a named template that will generate the ID. For example, you
could count the number of preceding elements that don't have an _ID
attribute and then add that value to the numeric part of the nearest
preceding element that *does* have an _ID attribute. All doable with
normal XSLT functions.

    If you could pseudocode this a little bit, that would be very helpfull.
    I just have 3 days experience with XSLT.

Thanks,
Endre



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