ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
RE: [xsl] Using keys to build a tree represented in XMI
by Florent Georges other posts by this author
Dec 29 2005 7:40AM messages near this date
RE: [xsl] Using keys to build a tree represented in XMI | Re: RE: [xsl] Using keys to build a tree represented in XMI
& XSLT Christian Solisch wrote:

>  <xsl:key name="aggregation_by_classReference"
>           match="UML:Association.connection"
>           use="UML:AssociationEnd[@aggregation='none']
>                  / UML:AssociationEnd.participant
>                  / UML:Class/@xmi.idref"/>

>  [...]

>  <xsl:value-of
>      select="key('aggregation_by_classReference',./@xmi.id)
>                / @xmi.id"/>

>  [...]

>  <UML:Association xmi.id="Aggregation_id_1">
>    <UML:Association.connection>

  The 'Association.connection' doesn't have a @xmi.id.  Maybe you want
its ../@xmi.id.  If I use this (see the "../"):

    <xsl:value-of
        select="key('aggregation_by_classReference',./@xmi.id)
                  / ../@xmi.id"/> 

Saxon output (with the text output method):

    Aggregation_id_1

  Is it the expected behaviour?

--drkm




















	

	
		
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels
 pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@[...].com> 
--~--
Thread:
Christian Solisch
Michael Kay
Florent Georges
Christian Solisch
Christian Solisch

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved