[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Need assistance with a match string
Hi- I am having trouble with grabbing the title associated with an element's ID attribute value (we are calling it an "eid") and am hoping someone can see my mistake. I have the ID value that I am pointing to in a variable (below I call it $linkId). I want to say "give me the title of the element in my document that matches this id value". I know my ID value is working because the actual link points to the correct location in the document but I just can't get the title to appear. We have lots of different elements that this eid could be on so I need to look for any element that matches this id. My statement looks like: <xsl:value-of select="//*[@eid='{$linkId}']/title"/> Currently it is not returning anything. My gut feeling is that something is wrong where I am trying to match the attribute to a variable value. I have tried many things like removing the quotes, brackets, or both and none of these options give me anything except one gives an error. I have to put my link ID in a variable because I have to do some massaging on the original ID value since we do not use unique ID values across a single document (that wasn't my choice but I am having to make it work this way). We are using a Saxon parser if that helps. Thanks for any suggestions you can offer on this, Cindy Hunt
|
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
|