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

RE: How to navigate in an expression (sort of)

Subject: RE: How to navigate in an expression (sort of)
From: Jay Walters <jwalters@xxxxxxxxxxxxx>
Date: Fri, 9 Feb 2001 09:58:01 -0500
type foundation
As for the compactness of the names, XMI is a standard promulgated by the
OMG.  I think they used such long names because they didn't consider
namespaces (not sure if they were available) when they did the 1.0 standard.
I've seen the 1.1 standard and they use namespaces along with much shorter
element names.

Thanks again for the help...

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Thursday, February 08, 2001 1:48 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  How to navigate in an expression (sort of)



Oh sorry for previous reply this is a key question.

(Which probably means I should leave it to Jeni to answer, but
anyway...)

given an id string you eant to get to element nodes that have
that string as the value of 
Foundation.Core.AssociationEnd.type/Foundation.Core.Classifier/@xmi.idref

Incidentally the above only looks horrible as you've gone in for this
computer science notion of understandable names, if you'd have caled it
x/y/@z
then it would have looked a lot more compact:-)

Anyway back to keys...

You want something like

<xsl:key name="x"
  match="Foundation.Core.AssociationEnd"
 
use="Foundation.Core.AssociationEnd.type/Foundation.Core.Classifier/@xmi.idr
ef"
/>

now in your template for Foundation.Core.Class you can go
<xsl:apply-templates select="key(@xmi.id)"/>

and you will apply templates to all (one) Foundation.Core.AssociationEnd
elements that have the stated property of having a key value of S.1.
(I hope)

David

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

 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.