| Subject: [xsl] first warning message is printed in output using  XSL From: "Sharma, Jaikumar" <jaikumar.sharma@xxxxxxxxx> Date: Tue, 31 Jul 2007 14:15:06 +0530 | 
Hi All,
I have written the follwing XSL code to parse the XML docuemnt, every
thing works fine, but last (s.no.3) print the first waring message
always.
-----------------------------------------------
1.
<xsl:template match="/">
 <html>
   <body>
       <xsl:apply-templates
select="cruisecontrol/build/target[@name='main']" />
    </body>
 </html>
 </xsl:template>
2.
  <xsl:template match="*">
    <xsl:for-each select="task/target[@name='subsystem.build.main']">
          <p style="color: FFFFFF; background-color: 330066; height:
2px; font-size: 12pt">
            <xsl:value-of
select="task/target/task/message[@priority='warn']" />
         </p>
          <xsl:call-template name="javadoc.filter" />
    </xsl:for-each>
  </xsl:template>
3.
  <xsl:template name="javadoc.filter"
match="task/target[@name='subsystem.build.main']">
       <xsl:for-each select="task/target/task/target">
          <p style="font-size: 9pt">
             <xsl:value-of select="task/message[@priority='warn']" />
          </p>
       </xsl:for-each>
  </xsl:template>
----------------------------------------------
Does somebody know see, what I am missing here ?
Thanks.
DISCLAIMER:
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the company
does not warrant a proper and complete transmission of this information, nor
does it accept liability for any delays. If you have received this message in
error, please contact the sender and delete the message. Thank you.
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Finding the current node , David Carlisle | Thread | Re: [xsl] first warning message is , Abel Braaksma (onlin | 
| RE: [xsl] Finding the current node , Michael Kay | Date | Re: [xsl] first warning message is , Abel Braaksma (onlin | 
| Month |