[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with a key
The use= attribute is calculated relative to the node matched.
You are matching on title so you need to express use= as relative to the title element. BTW, the use of text() may happen to work but it is a bad habit to get into. So very (very!) rarely have I ever needed to use text(). If you want the text value of an element, simply address the element. I hope this helps. . . . . . . . . Ken At 2012-03-22 16:10 -0500, russurquhart1@xxxxxxxxxxx wrote: I am trying to use a key to return the errata_section title elements, given the device_name element attached to the parent errata_section. -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|