Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-147

exportXML escapes values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • xml
    • 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.

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            yagee Thomas Scheffler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: