Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 63466 invoked from network); 17 Jan 2001 16:55:22 -0000 Received: from smtp0.amsterdam.agency.com (194.109.90.3) by h31.sny.collab.net with SMTP; 17 Jan 2001 16:55:22 -0000 Received: FROM ntexchange.amsterdam.agency.com BY smtp0.amsterdam.agency.com ; Wed Jan 17 17:57:01 2001 +0100 Received: by ntexchange.amsterdam.agency.com with Internet Mail Service (5.5.2650.21) id ; Wed, 17 Jan 2001 17:56:09 +0100 Message-ID: From: Roberto Viana To: cocoon-users@xml.apache.org Subject: Excluding elements in XSL, How? Date: Wed, 17 Jan 2001 17:56:08 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This should be more a specific question for a XSL newsgroup but = anyway... How can I exclude XML elements using a XSL? for example: I have a xml file that I want to format pasing it to a XSL, I only want = to format the children elements from page1, page2 elements should not = appear in my formatted file. I tryed this with the XSL described below but I get = some errors: ************************************************************************= **** ******** Error found handling the request org.apache.xalan.xslt.XSLProcessorException: Can't have more than one = root on a DOM! ************************************************************************= **** ******** So in one word what I want to do is: extract data from this XML file, = show this extracted data and the remaining data in the XML should not appear = in the result page. Thank you for your feedbak! Rob. =3D=3D=3D=3D=3DXML file=3D=3D=3D=3D=3D=3D Hello 1 This is my first Cocoon page! Hello 2 This is my second Cocoon page! =3D=3D=3D=3DXSL file=3D=3D=3D=3D=3D=3D type=3D"text/html" <xsl:value-of select=3D"title"/>

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= AGENCY.COM : Amsterdam Eekholt 40, 112 XH Diemen Postbus 23447 1100 DX=A0 Amsterdam Z.O. The Netherlands T +31 (0)20 7994000 F +31 (0)20 7994001 @ mailto:rviana@agency.com http://www.agency.com ICQ# 47478252 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D