Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 71750 invoked from network); 18 Mar 2005 13:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Mar 2005 13:50:56 -0000 Received: (qmail 36164 invoked by uid 500); 18 Mar 2005 13:50:55 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 36150 invoked by uid 99); 18 Mar 2005 13:50:54 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of michael.wechner@wyona.com designates 195.226.6.68 as permitted sender) Received: from mx1.wyona.com (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Mar 2005 05:50:53 -0800 Received: from ytterbium.wyona.ch ([195.226.6.70]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1DCHsI-0000DV-00 for ; Fri, 18 Mar 2005 14:50:50 +0100 Message-ID: <423ADCC5.4080000@wyona.com> Date: Fri, 18 Mar 2005 14:51:01 +0100 From: Michael Wechner User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, de, en MIME-Version: 1.0 To: jackrabbit-dev@incubator.apache.org Subject: Re: re-opening jira/browse/JCR-62 about xml:lang etc. References: <423ABAE6.4060906@wyona.com> <8be731880503180519470b763f@mail.gmail.com> In-Reply-To: <8be731880503180519470b763f@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Tobias Strasser wrote: >hi michi, >the problem arises when someone creates a node or property with a xml >reserved namespace, for example: xml:myProperty. when exporting (as >docview), it would result in a xml document having an attribute or an >element using a xml reserved namespace. > > finally understand the reasoning. thanks for the explanation >as mentioned in [1]: >... >Namespace Constraint: Leading "XML" >Prefixes beginning with the three-letter sequence x, m, l, in any case >combination, are reserved for use by XML and XML-related >specifications. >... > >the jsr170 specification will be altered in a way that >importing/exporting xml reserved properties or nodes are allowed. > ok, so I guess in the meantime we just patch if (atts.getQName(i).startsWith("xml:")) { of org/apache/jackrabbit/core/xml/DocViewImportHandler.java ourselves in order to allow the reserved ones, e.g. xml:lang or xml:id Thanks Michi > it >will be the responsibility of the application to avoid creation of >properties or nodes that will result in a invalid xml document (in >respect to xml reserved names) when exporting. > >cheers, tobi > >[1] http://www.w3.org/TR/REC-xml-names/#xmlReserved > > -- Michael Wechner Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org michael.wechner@wyona.com michi@apache.org