Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 63942 invoked by uid 500); 2 Mar 2002 16:40:06 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 63918 invoked from network); 2 Mar 2002 16:40:05 -0000 Sender: root Message-ID: <3C81019F.34B537AD@littlepenguin.org> Date: Sat, 02 Mar 2002 17:45:19 +0100 From: Christian Zoffoli Organization: LittlePenguin.org X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.18-2mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: Cocoon Devel Subject: XMLDBTransformer -- little stupid patch to prevent the missing Namespace problem Content-Type: multipart/mixed; boundary="------------D3A4EEA10063794B4297109C" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------D3A4EEA10063794B4297109C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit ...here is a little stupid patch ...waiting a fixed xalan and/or a better solution Christian --------------D3A4EEA10063794B4297109C Content-Type: text/plain; charset=us-ascii; name="XMLDBTransformer-ns.chris.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="XMLDBTransformer-ns.chris.patch" --- XMLDBTransformer.java.chris Sat Mar 2 23:37:03 2002 +++ XMLDBTransformer.java Sat Mar 2 23:37:45 2002 @@ -430,6 +430,19 @@ try { XUpdateQueryService service = (XUpdateQueryService) collection.getService("XUpdateQueryService", "1.0"); + + String document2 = null; + int index1 = document.indexOf(""); + + if ( index1 > 0 ) + { + document2 = document.copyValueOf(document.toCharArray() , 0, (index1 - 1) ); + document2 = document2.concat(""); + document2 = document2.concat( document.copyValueOf( document.toCharArray() , (index1 + 32), (document.length()-(index1 + 32)) ) ); + + document = document2; + } + long count = (this.key == null)? service.update(document) : service.updateResource(this.key, document); message = count + " entries updated."; --------------D3A4EEA10063794B4297109C Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org --------------D3A4EEA10063794B4297109C--