Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 23689 invoked from network); 18 Mar 2005 17:23:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 Mar 2005 17:23:07 -0000 Received: (qmail 32818 invoked by uid 500); 18 Mar 2005 17:23:06 -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 32803 invoked by uid 99); 18 Mar 2005 17:23:06 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 18 Mar 2005 09:23:06 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j2IGwRla004690 for ; Fri, 18 Mar 2005 17:58:27 +0100 Message-ID: <980388742.1111165107442.JavaMail.jira@ajax.apache.org> Date: Fri, 18 Mar 2005 17:58:27 +0100 (CET) From: "Stefan Guggisberg (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Commented: (JCR-62) import must not ignore xml prefixed attributes In-Reply-To: <2057345177.1110661078761.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-62?page=comments#action_61219 ] Stefan Guggisberg commented on JCR-62: -------------------------------------- fixed in rev. 158098, anticipating related spec change in 0.16.4 > import must not ignore xml prefixed attributes > ---------------------------------------------- > > Key: JCR-62 > URL: http://issues.apache.org/jira/browse/JCR-62 > Project: Jackrabbit > Type: Bug > Components: xml > Reporter: Roy T. Fielding > Assignee: Peeter Piegaze > Priority: Blocker > > XML import currently ignores attributes that are in the xml namespace. > e.g., DocViewImportHandler's startElement(): > if (atts.getQName(i).startsWith("xml:")) { > // skipping xml:space, xml:lang, etc. > log.debug("skipping reserved/system attribute " + atts.getQName(i)); > continue; > } > That is a significant loss of information, since xml:base, xml:lang, and xml:id attributes are critical to the content. We should register the xml prefix as a reserved namespace (not needing an xmlns declaration) and then treat it like any other attribute. > Here are some useful XML examples: > http://xformsinstitute.com/essentials/browse/ch03s02.php > http://www.zvon.org/HowTo/Output/ > http://www.w3.org/Math/testsuite/testsuite/TortureTests/Complexity/complex1.xml > http://intertwingly.net/wiki/pie/EchoExample > http://support.sas.com/onlinedoc/913/getDoc/en/engxml.hlp/a002973381.htm -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira