[ http://issues.apache.org/jira/browse/JCR-147?page=all ]
     
Stefan Guggisberg closed JCR-147:
---------------------------------

    Resolution: Invalid

according to "6.4.4 Escaping of Values" of the spec:
<quote>
...
In document view serialization, if the property being serialized is 
multi-valued (or if the implementation chooses to encode spaces in single value 
properties too, see below) then the value or values must be further encoded by 
escaping any occurrence of one of the four whitespace characters:
...
</quote>

jackrabbit's behaviour is compliant with the spec, therefore resolving this
issue as 'invalid"

> exportXML escapes values
> ------------------------
>
>          Key: JCR-147
>          URL: http://issues.apache.org/jira/browse/JCR-147
>      Project: Jackrabbit
>         Type: Bug
>   Components: xml
>  Environment: Gentoo Linux 2005.0
>     Reporter: Thomas Scheffler
>     Assignee: Stefan Guggisberg

>
> I tested jackrabbit with the tutorial found at your homepage 
> (http://incubator.apache.org/jackrabbit/firststeps.html). After importing a 
> custom xml I wanted it to be exported again.
> Here is a snip of the dump(Node n) output:
> ...
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink/jcr:primaryType=nt:unstructured
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink/xlink:type=locator
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink/xlink:href=DiplArb_person_00000001
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink/xlink:label=Author
> /sample1/mycoreobject/metadata/creatorlinks/creatorlink/xlink:title=Thomas 
> Scheffler
> ...
> I run the following command:
> session.exportDocumentView("/sample1/mycoreobject", System.out, false, false);
> and get the following output:
> ...
> <creatorlink jcr:primaryType="nt:unstructured" xlink:type="locator" 
> xlink:href="DiplArb_person_00000001" xlink:label="Author" 
> xlink:title="Thomas_x0020_Scheffler" />
> ...
> As you can see the "xlink:title" attribute value is escaped after the rules 
> of chapter 6.4.3 of the specification, but this should only be applied to XML 
> element and attribute NAMES.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to