[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Hi... i was wondering can someone give me some advise over this question....
suppose i have such xml structure...
<persons>
i would like to define a key to such as group them by name.... (e.g. <xsl:key name="NameID" match="name" use="<xsl:value-of select="name">)
and then find the person with a person name Mike M Jones (first=mike follow by middle=M and last=Jones) writing such key...
<xsl:apply-templates select="key('NameID', '<xsl:value-of select="deviation">')"/>
i know this is not correct but that's probably the best i can explain the situation... can someone tell me what is the best approach to achieve the desired results?
Many thanks
Regards
Kit
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] problem with using xsl:key
Subject: [xsl] problem with using xsl:key From: "林 子芯" <minikittygo@xxxxxxxxxxx> Date: Mon, 11 Feb 2002 13:07:10 +0000 |
Hi... i was wondering can someone give me some advise over this question....
suppose i have such xml structure...
<persons>
<boston> <person> <name> <first>Mike</first> <middle>M</middle> <last>Jones</last> </name> <profession>Factory worker</profession> <No_child>none</No_child> <person> ... </boston> <new_york> <person> <name> <first>Jess</first> <middle>K</middle> <last>Smith</last> </name> <profession>teacher</profession> <person>
<person> <name> <first>Mike</first> <middle>M</middle> <last>Jones</last> </name> <profession>Rocket scientistr</profession> <No_child>none</No_child> <person> ... </new_york> </persons>
i would like to define a key to such as group them by name.... (e.g. <xsl:key name="NameID" match="name" use="<xsl:value-of select="name">)
and then find the person with a person name Mike M Jones (first=mike follow by middle=M and last=Jones) writing such key...
<xsl:apply-templates select="key('NameID', '<xsl:value-of select="deviation">')"/>
i know this is not correct but that's probably the best i can explain the situation... can someone tell me what is the best approach to achieve the desired results?
Many thanks
Regards
Kit
_________________________________________________________________ 在您的行動裝置上傳送接收 Hotmail 郵件,請移至 http://mobile.msn.com。
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml to multiple targets?, Robert Koberg | Thread | Re: [xsl] problem with using xsl:ke, Jeni Tennison |
Re: [xsl] 2 level Grouping through , ronald heller | Date | Re: [xsl] xml to multiple targets?, Robert Koberg |
Month |
Keywords