|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT/XPATH Namespace conflict ?
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: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








