Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
None
-
Gentoo Linux 2005.0
Description
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.