You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Peeter Piegaze (JIRA)" <ji...@apache.org> on 2005/03/14 17:24:08 UTC
[jira] Resolved: (JCR-62) import must not ignore xml prefixed attributes
[ http://issues.apache.org/jira/browse/JCR-62?page=history ]
Peeter Piegaze resolved JCR-62:
-------------------------------
Resolution: Fixed
fixed in spec.
> 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
Re: [jira] Resolved: (JCR-62) import must not ignore xml prefixed
attributes
Posted by Michael Wechner <mi...@wyona.com>.
Peeter Piegaze (JIRA) wrote:
> [ http://issues.apache.org/jira/browse/JCR-62?page=history ]
>
>Peeter Piegaze resolved JCR-62:
>-------------------------------
>
> Resolution: Fixed
>
>fixed in spec.
>
>
sorry if this might be a stupid question, but does that mean one cannot
import
xml prefixed attributes?
Maybe another stupid question, where can I find the updated version of
the spec? I have checked
http://jcp.org/aboutJava/communityprocess/pfd/jsr170/index.html
but this seems to be the same as "yesterday".
Is there a working draft page?
Thanks
Michi
>e
>
>
>>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
>>
>>
>
>
>
--
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