Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 3085 invoked from network); 23 Dec 2005 12:55:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Dec 2005 12:55:53 -0000 Received: (qmail 64594 invoked by uid 500); 23 Dec 2005 12:55:44 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 64515 invoked by uid 500); 23 Dec 2005 12:55:43 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 64448 invoked by uid 99); 23 Dec 2005 12:55:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 04:55:43 -0800 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.91.193.21] (HELO wip-ectls-mx1.wipro.com) (203.91.193.21) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2005 04:55:42 -0800 Received: from wip-ectls-mx1.wipro.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id BC13322038C for ; Fri, 23 Dec 2005 18:25:19 +0530 (IST) Received: from blr-ec-bh01.wipro.com (blr-ec-bh01.wipro.com [10.201.50.91]) by wip-ectls-mx1.wipro.com (Postfix) with ESMTP id AF47222033C for ; Fri, 23 Dec 2005 18:25:19 +0530 (IST) Received: from BLR-EC-MBX01.wipro.com ([10.201.50.161]) by blr-ec-bh01.wipro.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 23 Dec 2005 18:25:19 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C607C0.20EF4742" Subject: RE: xslt Date: Fri, 23 Dec 2005 18:28:39 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: xslt Thread-Index: AcYHvZ3DVugsJRJeTP2GUL6zdjRZUwAAubCg From: To: X-OriginalArrivalTime: 23 Dec 2005 12:55:19.0581 (UTC) FILETIME=[21063CD0:01C607C0] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C607C0.20EF4742 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable =0D =0D -----Original Message----- From: kavitha ramesh [mailto:kaviramesh77@yahoo.com]=0D Sent: Friday, December 23, 2005 6:06 PM To: users@cocoon.apache.org Subject: xslt Hi, =0D I have the following xml file.I would like to check if the filename inside the bigfiles equals the filename inside the smallfiles.if so i would like to display the error of the corresponding filename,,,if someone knows pls help me,,, =0D =0D aaa =0D aaa aaa bbb bbb ccc ccc =0D =0D rgds kavitha _____ =0D Yahoo! DSL Something to write home about. Just $16.99/mo. or less The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.=0D WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email. =0D www.wipro.com ------_=_NextPart_001_01C607C0.20EF4742 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
<?xml version=3D"1.0"=0D encoding=3D"utf-8"?>
<xsl:stylesheet version= =3D"1.0"
   =0D xmlns:xsl=3D"http://www.w3.org/1999/XSL/Transf= orm"
   =0D xmlns:xlink=3D"http://www.w3.org/1999/xlink">
 
 <xsl:template=0D match=3D"/">
   <xsl:variable name=3D"bFileName"=0D select= =3D"report/bigfiles/filename"/>
   <xsl:for-each=0D select= =3D"report/smallfiles/*[contains(local-name(),'file')]">
  =   <xsl:if=0D test=3D"filename =3D=0D $bFileName">
     <xsl:value-of=0D select= =3D"error"/>
    </xsl:if>   = ;
   </xsl:for-each>
 </xsl:template>=
</xsl:stylesheet>
-----Original Message-----
From: kavitha= ramesh=0D [mailto:kaviramesh77@yahoo.com]
Sent: Friday, December 23,= 2005=0D 6:06 PM
To: users@cocoon.apache.org
Subject:=0D xslt

Hi,
 
I have the following xml file.I would like to check if the filename= =0D inside the bigfiles equals the filename inside the smallfiles.if so i= would=0D like to display the error of the corresponding filename,,,if someone= knows pls=0D help me,,,
 
<report>
 
=
<bigfiles>
<filename>aaa</filename>
</bigf= iles>
 
=
<smallfiles>
<file1>
<filename>aaa</filena= me>
<error>aaa</error>
</file1>
<file2>=
<filename>bbb</filename>
<error>bbb</error><= BR><file2>
<file3>
<filename>ccc</filename><error>ccc</error>
<file3>
</smallfiles>
 
</report>
 
rgds
kavitha


Yahoo!=0D DSL Something to write home about. Just $16.99/mo. or=0D less

The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and= may contain proprietary, confidential or privileged information. If you= are not the intended recipient, you should not disseminate, distribute or= copy this e-mail. Please notify the sender immediately and destroy all= copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient= should check this email and any attachments for the presence of viruses.= The company accepts no liability for any damage caused by any virus= transmitted by this email.

www.wipro.com
------_=_NextPart_001_01C607C0.20EF4742--