Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 28621 invoked from network); 2 Mar 2005 10:08:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Mar 2005 10:08:25 -0000 Received: (qmail 55771 invoked by uid 500); 2 Mar 2005 10:08:16 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 55717 invoked by uid 500); 2 Mar 2005 10:08:16 -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 Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 55672 invoked by uid 99); 2 Mar 2005 10:08:16 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from wabe.csir.co.za (HELO wabe.csir.co.za) (146.64.10.166) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 02 Mar 2005 02:08:12 -0800 Received: from cs-emo.csir.co.za (cs-emo.csir.co.za [146.64.10.40]) by wabe.csir.co.za (8.12.11/8.12.11) with ESMTP id j22A736J004608 for ; Wed, 2 Mar 2005 12:07:04 +0200 Received: from GW-EMO-MTA by cs-emo.csir.co.za with Novell_GroupWise; Wed, 02 Mar 2005 12:07:03 +0200 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.3 Date: Wed, 02 Mar 2005 12:06:48 +0200 From: "Derek Hohls" To: Subject: Re: parsing xml code [converting escaped tags?] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CSIR-MailScanner-Information: Please contact sys-admin at csir dot co dot za for more information X-CSIR-MailScanner: Found to be clean X-MailScanner-From: dhohls@csir.co.za X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Vlad This is more about how to write out escaped tags rather than actually converting them to valid XML. Derek >>> vlad@top.ee 2005/03/01 08:10:26 AM >>> I have found something similar: http://www.dpawson.co.uk/xsl/sect2/N2215.html Does anybody tried it to solve our problem? "Derek Hohls" wrote in message news:s2231be3.076@cs-emo.csir.co.za... > Vlad > > I have never done this; I am still struggling with the htmlArea > component that is used with Cocoon forms... it saves all the > data as escaped tags (as per your example) and that makes > it impossible to post-process... what Cocoon needs is a transformer > that takes a file with escaped tags and converts them to valid XML. > > Any takers to code this?? > > Derek > > >>> vlad@top.ee 2005/02/28 01:25:47 PM >>> > Derek, > > that was very helpful. It would work if there wouldn't be one moment. > I > noticed that actually all the data in DB is in such format: > > <contact> > <name>Chris</name> > <surname>Lautre</surname> > <address>Plomipuu 16</address> > <email>clautre@datanet.ee</email> > <phone></phone> > </contact> > > Is it possible to convert it to the normal tags and then apply your > method? > > Vlad > > "Derek Hohls" wrote in message > news:s223068b.097@cs-emo.csir.co.za... > > You may need to add in a namespace to the file below to > > make it a valid XML file e.g. > > > > > xsi:type="ns2:DBConnection1_ComponentObjectUser" > > xmlns:xsi="http://apache.org/cocoon/xsi/1.0"> > > ... > > > > Then the following works (under my Cocoon 2.1.5): > > > > > > > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > xmlns:xsi="http://apache.org/cocoon/xsi/1.0" > > > > > > > > > > > > > > > > > > > > > > > > > , > > > > > > > > > > > > > > > > > > HTH. > > > > > > >>> vlad@top.ee 2005/02/28 11:41:10 AM >>> > > Hi All, > > > > I have a web service, which returns me code like that: > > > > > -------------------------------------------------------------------------- > -- > > -- > > xsi:type="ns2:DBConnection1_ComponentObjectUser"> > > Chris > > Lautre
Plomipuu 16
> > clautre@datanet.ee
> > > Vlad Golodov
Paasiku 22 - > > 155
vlad@top.ee +37256639190 > >
> > 97 > > Address Book For > > Other > > ADDRESSBOOK > > > xsi:type="xsd:dateTime">2005-02-21T11:46:50.000Z > > > > New Address Book For > > Other > > 11 > > > > clautre > >
> > > -------------------------------------------------------------------------- > -- > > -- > > > > In xslt I need to parse componentClob and iterate through the > contact > > tags. > > > > That code gives me the content of the componentClob: > > > > > -------------------------------------------------------------------------- > -- > > - > > > > disable-output-escaping="yes"/> > > > > > -------------------------------------------------------------------------- > -- > > - > > > > I was trying to iterate through the content of clob, but all was > > vainly. > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org