LostProgrammer
Well-known member
- Joined
- Jan 17, 2003
- Messages
- 123
I want to select a node set base on the attribute value of a sibling node.
I have a nodes
<Table Name=Customers>
<Field Name=CustomerId/>
<Field Name=AccountNumber/>
</Table>
<ExtendedDataType>
<Table Name=Customers/>
<Field Name=CustomerId/>
</ExtendedDataType>
This query returns all of the Property nodes from the Customers table:
/xs:Tables/xs:Table[attribute::Name=Customers]/xsropertys/xsroperty
I want to replace Customers with
parent::Table[attribute::Name] resulting in something like
/xs:Tables/xs:Table[attribute::Name=parent::Table[attribute::Name]/xsropertys/xsroperty
so that I can filter the choices for Field of ExtendedDataType by using the Table Name that has already been selected.
can this be done? do i need a variable or something?
Thanks for the help,
lp
I have a nodes
<Table Name=Customers>
<Field Name=CustomerId/>
<Field Name=AccountNumber/>
</Table>
<ExtendedDataType>
<Table Name=Customers/>
<Field Name=CustomerId/>
</ExtendedDataType>
This query returns all of the Property nodes from the Customers table:
/xs:Tables/xs:Table[attribute::Name=Customers]/xsropertys/xsroperty
I want to replace Customers with
parent::Table[attribute::Name] resulting in something like
/xs:Tables/xs:Table[attribute::Name=parent::Table[attribute::Name]/xsropertys/xsroperty
so that I can filter the choices for Field of ExtendedDataType by using the Table Name that has already been selected.
can this be done? do i need a variable or something?
Thanks for the help,
lp