Write:
<xsl:for-each select="//x:ActivityHeader" xmlns:x="http://tempuri2.org">
Michael Kay
-----Original Message-----
From: Horacio Escalada [mailto:HEscalada(_at_)cpso(_dot_)on(_dot_)ca]
Sent: 27 April 2004 15:29
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] XSLT/XPATH Namespace conflict ?
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
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--