Subject: RE: [xsl] XSLT/XPATH Namespace conflict ? From: "Michael Kay" <mhk@xxxxxxxxx> Date: Tue, 27 Apr 2004 16:35:03 +0100 |
Write: <xsl:for-each select="//x:ActivityHeader" xmlns:x="http://tempuri2.org"> Michael Kay > -----Original Message----- > From: Horacio Escalada [mailto:HEscalada@xxxxxxxxxx] > Sent: 27 April 2004 15:29 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT/XPATH Namespace con, G. Ken Holman | Thread | Re: [xsl] XSLT/XPATH Namespace con, David Carlisle |
Re: [xsl] XSLT/XPATH Namespace con, G. Ken Holman | Date | Re: [xsl] XSLT/XPATH Namespace con, David Carlisle |
Month |