[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: What's wrong with my code Version 1.0 (Altova XMLS

Subject: Re: What's wrong with my code Version 1.0 (Altova XMLSPY)
From: "Vyacheslav Sedov" <vyacheslav.sedov@xxxxxxxxx>
Date: Fri, 6 Jun 2008 18:40:37 +0400
Re:  What's wrong with my code Version 1.0 (Altova XMLS
i prefer use match="/*" (this match just any root element - since
developers often love change namespace and/or name for root element so
i am just skip this step

On Fri, Jun 6, 2008 at 6:27 PM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
> Pankaj Chaturvedi wrote:
>
>  Hi
>
>>       <xsl:template match="/">
>> [...]
>>               <xsl:apply-templates select="NewsEnvelop//Party"/>
>>               <xsl:apply-templates select="NewsItem"/>
>
>  In your sample input, the document node doesn't have any child
> element named NewsEnvelop nor NewsItem.  I guess you are after the
> following instead:
>
>    <xsl:template match="/">
>       ...
>       <xsl:apply-templates select="NewsML/NewsEnvelop//Party"/>
>       <xsl:apply-templates select="NewsML/NewsItem"/>
>
> or:
>
>     <xsl:template match="/NewsML">
>       ...
>       <xsl:apply-templates select="NewsEnvelop//Party|NewsItem"/>
>
>  They are slightly different, that depends on your inputs, but it
> seems in your case they mean the same thing (extrapolated from your
> sample input).
>
>  Regards,
>
> --drkm
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>      _____________________________________________________________________________
> Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.