[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Need to find element name of corresponding attribute

Subject: Need to find element name of corresponding attribute value
From: charlieo0@xxxxxxxxxxx
Date: Fri, 15 Jul 2011 13:50:02 +0000 (UTC)
 Need to find element name of corresponding attribute
I need help finding a method for getting the name of an element based on the corresponding ID and IDREF attributes. I cannot use the id() function because the project I'm working is converting well-formed XML to DTD compliant XML. The id() function doesn't work because there is no DTD that defines ANY attribute types. So basically assume the ID attribute is defined as CDATA and not ID.

Here is basically what I'm working from:

<service id="M202-01">
<title>TITLE</title>
<para>See <xref taskid="M202-02"/>.</para>
<para>Stuff</para>
</service>
<remove id="M202-02">
<title>TITLE</title>
<para>Para stuff</para>
</remove>

I need to identify the name of the element that contains the ID value of the the "taskid" in <xref>. Once I have that, I can grab the value of the child <title> element.

C. Flanders

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.