[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: following ID references (was untitled)
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 17 Apr 2001 09:04:25 +0100
>
> <graph_catalogue>
> 	<graph sec_ref="EAF"  >
> 		<title> a graph </title>
> 	</graph>
>
> 	<section id="EAF" >
> 		<sec_head> a person </sec_head>
> 	</section>
> </graph_catalogue>
>
> I want to use XSL in a similar fashion to a database query.
> Given the title
> of the graph, I want to get the name of the corresponding
> (via id) section
> head. Can someone please tell me how to do this?
>

If the <title> is the context node, and if "id" is an attribute of type ID,
you can get the <sec_head> as

id(../@sec_ref)/sec_head

Mike Kay


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


Current Thread
  • [no subject]
    • BABB, Sarah - Mon, 16 Apr 2001 21:57:55 -0400 (EDT)
      • Michael Kay - Tue, 17 Apr 2001 04:01:59 -0400 (EDT) <=
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member