RE: What's wrong with my code Version 1.0 (Altova XMLS
Oh Got ...........Spell mistake NewsEnvelope Thanks a lot for guidance again. Best, Pankaj Chaturvedi ============================================================================ ================ -----Original Message----- From: Pankaj Chaturvedi [mailto:pankaj.chaturvedi@xxxxxxxxx] Sent: Friday, June 06, 2008 8:33 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: What's wrong with my code Version 1.0 (Altova XMLSPY) Thanks Florent. I think I got my error. I should have gone with (as Vycheslav also suggested) <xsl:template match="/"> <XMLFileCollection> <XMLFile> <issueinfo> <!-- Issue Level title Information --> <xsl:apply-templates select="NewsML/NewsEnvelop//Party"/> <xsl:apply-templates select="NewsML/NewsItem"/> I am getting my NewsItem working correctly, but what happened to NewsEnvelop elements, I am getting nothing: <xsl:template match="NewsML/NewsEnvelop//Party"> <!-- Title --> <title><xsl:value-of select="string(./Property[@FomalName='NewsRoom']/@Value)"/></title> </xsl:template> As per my understanding match path "NewsML/NewsEnvelop//Party" means I have reached the <Party> element and now can access its corresponding elements, text, attributes etc. Then why there is no title info (<title><xsl:value-of select="string(./Property[@FomalName='NewsRoom']/@Value)"/></title>). Any ideas. Please correct me if my understanding are wrong. Best, Pankaj Chaturvedi ============================================================================ ================ > > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________________ > _______ Envoyez avec Yahoo! Mail. Une boite mail plus intelligente > http://mail.yahoo.fr <HTML><BODY><P><hr size=1></P> <P><STRONG> Confidentiality Notice:" This message and any attachment(s) contained here are information that is confidential, proprietary to IDS Infotech Ltd. and its customers. Contents may be privileged or otherwise protected by law. The information is solely intended for the individual or the entity it is addressed to. If you are not the intended recipient of this message, you are not authorized to read, forward, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer." </STRONG></P></BODY></HTML>
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