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
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