xsl-list
[Top] [All Lists]

[xsl] first warning message is printed in output using XSL

2007-07-31 01:45:52
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[(_at_)name='main']" />
    </body>
 </html>
 </xsl:template>   
 
2.
  <xsl:template match="*"> 
    <xsl:for-each select="task/target[(_at_)name='subsystem.build.main']">
          <p style="color: FFFFFF; background-color: 330066; height:
2px; font-size: 12pt">  
            <xsl:value-of
select="task/target/task/message[(_at_)priority='warn']" />
         </p>         
          <xsl:call-template name="javadoc.filter" />

    </xsl:for-each>
  </xsl:template>
 
3.
  <xsl:template name="javadoc.filter"
match="task/target[(_at_)name='subsystem.build.main']">
       <xsl:for-each select="task/target/task/target">
          <p style="font-size: 9pt">
             <xsl:value-of select="task/message[(_at_)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.

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

<Prev in Thread] Current Thread [Next in Thread>