Subject: [xsl] Using key with XPath and use value? From: "Liguori, Steven" <Steven.Liguori@xxxxxxxxxxxxx> Date: Wed, 15 Jan 2003 11:14:10 -0600 |
If <xsl:key> is defined at the top-level of a document (i.e., globally), can you get to values based on the XPath as well as the key value? For example, I'm attempting to output subheads based on the attribute value of an element. I have element <b> which can have several element <d> descendants. <d> has a 'pub' attribute which is used to determine the subhead I need and all matching pub attributes are grouped for output under the appropriate subhead. <b>, however, can occur any number of times in a document. If I define a key as such: <xsl:key name="pubsBySubhead" match="d" use="@pub"/> can I get to the values for only the specific <b> for which I'm processing? I seem to be getting everything indexed in the key for each matching @pub, which is basically all the matches thoughout the whole document. Any help appreciated! XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Question about strings., Patel, Viral | Thread | Re: [xsl] Using key with XPath and , Wendell Piez |
RE: [xsl] Register Marks, Funny Cha, cknell | Date | [xsl] FW: Question about strings., Patel, Viral |
Month |