troubleshooting Question

XSLT fiiltering

Avatar of SANbuddies
SANbuddiesFlag for Norway asked on
Web Languages and StandardsXML
7 Comments1 Solution292 ViewsLast Modified:
I am running xslt and observed that there are two occurance of the attribute but the xslt is only fetching one occurance. I am not sure on what basis the xslt is retrieving on occurance and skipping the other.
Can someone explain?

I have modified the input file so there might be some syntax erro.

input file is
<Container>
<SPXTagCable>
<IObject  Name="26 C05110" />
 <Rel>      
      <IRel DefUID="CableFromTag" />
      <IObject UID="2e56510a-f578-4dfd-a1a9-515e6e60d92b" />
      <SPXTagFireGas>
        <IObject Name="43 FABU0A-01612B"  />
        </SPXTagFireGas>
</Rel>
</SPXTagCable>

 <SPXTagFireGas>
  <Rel>
      <ISubmittedItem TerminateObjectFlag="False" SAPInsertUpdateFlag="" />
      <IRel DefUID="CableFromTag" />
      <IObject UID="2e56510a-f578-4dfd-a1a9-515e6e60d92b" />
      <SPXTagCable>
        <IObject  Name="26 C05110" />
        </SPXTagCable>                
  </Rel>
 </SPXTagFireGas>
 </Container>

for some reason xslt is retreiving the following one but skipping the other.
<SPXTagFireGas>
  <Rel>
      <ISubmittedItem TerminateObjectFlag="False" SAPInsertUpdateFlag="" />
      <IRel DefUID="CableFromTag" />
      <IObject UID="2e56510a-f578-4dfd-a1a9-515e6e60d92b" />
      <SPXTagCable>
        <IObject  Name="26 C05110" />
        </SPXTagCable>                
  </Rel>
 </SPXTagFireGas>
input.xml
xslt-code.txt
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)
Information Architect
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros