Altova Mailing List Archives

[xsl] Child nodes with same name

From: "Jacqui Moore" <jacquimoore1@----------->
Date: 11/5/2004 3:10:00 PM

I have an xml file - shortened version of it is:

<Item Id="160" ConceptId="160" Category="true">
<Item Id="161" ConceptId="161" Category="true">
  <BroaderItem Id="891" ConceptId="891" Default="false">General support
  <BroaderItem Id="160" ConceptId="160" Default="true">Deaths</BroaderItem>
<Item Id="161" ConceptId="161" Category="true">
  <BroaderItem Id="160" ConceptId="160" Default="true">Deaths</BroaderItem>

With this pattern, I need to match any BroaderItem childnodes that match the

Expression = "Deaths"
selectPattern = "ControlledList/Item[BroaderItem='" & expression &"' &&
SET oChildren = objXML.selectNodes(selectPattern)

The problem is that unless the BroaderItem childnode that I am looking for
is the first BroaderItem childnode, it does not return it. So if I am
searching for all nodes that has the childnode BroaderItem matching
'Deaths', then this pattern only brings back Burials and not Bereavement as
it should. Any ideas?



These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.