Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 98194 invoked from network); 18 Jan 2011 13:26:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 13:26:20 -0000 Received: (qmail 19180 invoked by uid 500); 18 Jan 2011 13:26:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 18890 invoked by uid 500); 18 Jan 2011 13:26:16 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 18882 invoked by uid 99); 18 Jan 2011 13:26:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 13:26:16 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [131.211.80.10] (HELO mail.cs.uu.nl) (131.211.80.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 13:26:09 +0000 Received: from mail.cs.uu.nl (localhost.localdomain [127.0.0.1]) by mail.cs.uu.nl (Postfix) with ESMTP id 955D1A39CD for ; Tue, 18 Jan 2011 14:25:46 +0100 (CET) Received: from [131.211.81.94] (rhee.cs.uu.nl [131.211.81.94]) by mail.cs.uu.nl (Postfix) with ESMTP id 8A0D3A3734 for ; Tue, 18 Jan 2011 14:25:46 +0100 (CET) Message-ID: <4D3594DA.1040009@cs.uu.nl> Date: Tue, 18 Jan 2011 14:25:46 +0100 From: Sandor Spruit Organization: Information and Computing Sciences, Utrecht University User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: "users@jackrabbit.apache.org" Subject: Importing, and exporting XML. Default namespaces Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP at cs.uu.nl Hello, I just examined the Jackrabbit repository contents after importing a document with a default namespace (generated by an application that I need to work with) It looks as though Jackrabbit adds its own 'ns' prefix in the absence of a prefix in the original document. This prefix pops-up when the document gets exported through the 'session.exportDocumentView'. So, any subsequent processing steps (XSLT) need to be aware of the prefix. Is there a way to control what prefix Jackrabbit assigns to XML nodes in the default namespace? I may need to import XML documents from several sources, each with their own default namespace; I'd like to distinguish between them, and assign a meaningful prefix. regards, Sandor -- Information and Computing Sciences, Utrecht University, the Netherlands Personal coordinates: http://www.cs.uu.nl/staff/sandor.html "It's a beautiful day, don't let it get away!", (U2, Beautiful day)