xsl-list
[Top] [All Lists]

XSLT/XPATH Namespace conflict ?

2004-04-27 08:29:05
Hi everyone,
 
I applying a transformation to this XML

</ActivityHeadersWrapper>
    <ActivityHeaders xmlns="">
        <ActivityHeader xmlns="http://tempuri2.org";>
            <GId xmlns="">55A7FFB3-B46F-4B58-A2C1-52F2CC4FF442</GId> 
            <Id xmlns="">113804</Id> 
            <Name xmlns="">KAYAFAR,Jahn (458)</Name> 
        </ActivityHeader>
        <ActivityHeader xmlns="http://tempuri2.org";>
            <GId xmlns="">55A7FFB3-B46F-4B58-A2C1-52F2CC4FF5852</GId> 
            <Id xmlns="">113482</Id> 
            <Name xmlns="">AYVR, Jshah (45)</Name> 
        </ActivityHeader>
    </ActivityHeaders>
</ActivityHeadersWrapper>
 
 
When I am trying to loop through  ActivityHeader node it does not return
any values

<xsl:for-each select="//ActivityHeader">
    <xsl:value-of select="Id" />
</xsl:for-each >
 
But if I remove de value of the namespace for the ActivityHeader node,
works.
 
Is there any way to make the loop work without removing the namespace
attribtue.
 
Thank you
 

Horacio


<Prev in Thread] Current Thread [Next in Thread>