xsl-list
[Top] [All Lists]

RE: [xsl] What's wrong with my code Version 1.0 (Altova XMLSPY)

2008-06-06 08:08:40
Oh Got ...........Spell mistake NewsEnvelope

Thanks a lot for guidance again.





Best,

Pankaj Chaturvedi

============================================================================
================


-----Original Message-----
From: Pankaj Chaturvedi [mailto:pankaj(_dot_)chaturvedi(_at_)idsil(_dot_)com] 
Sent: Friday, June 06, 2008 8:33 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] 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[(_at_)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[(_at_)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


--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--

<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>

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>
--~--