Re: IE5-XSL: Comparing two elements

by Peter-Paul Koch <ppk(at)xs4all.nl>

 Date:  Wed, 06 Oct 1999 09:55:53
 To:  <hwg-xml(at)hwg.org>
 References:  xs4all
  todo: View Thread, Original
>So, I've assumed it's optional and that ABBREVIATION becomes a longer-hand
>version of ID. ID might be a technical key and used as the primary key in a
>database (and may be an integer which is sequentially generated).
>
>ABBREVIATION might then be a natural key and used as an alternate unique
>index in a database (and is more readily identifiable by a human). Both can
>be used to uniquely identify a ROLE.

No, these are all remains of two experiments. MS has a @link thing that is
supposed to work with links and ID's, but I haven't got it to work.

>In your XML code, you've also done the following...
>
>---
><supervisor link="pm">pm</supervisor>
><performer>wc</performer>
>---
>
>I don't see the LINK attribute being used by anything but it is trying to do
>the same sort of thing as I am suggesting with the empty elements technique
>above.

Again some leftovers.

><task>
>    <supervisor abbrev="pm"/>
>    <performer id="9"/>
></task>
>---
>
>Now you are not relying on the use of the "text" property for any element to
>link related elements in an XSL transformation. When travelling the
>normalized relationship, you are staying strictly to attributes.

Hmmm...interesting. I'll try that.

>In your example of the application, you never present the ABBREVIATION
>element to the user.

No, the example is incomplete because I tried to solve the comparing bit
for three days, then gave it up and quickly put some page together.

Anyway, thanks for all the help and I'll try again.

ppk

HWG hwg-xml mailing list archives, maintained by Webmasters