6.4.1.1 Example

A subtree with the following structure:

Node

Property = "value"


myapp:document

├─jcr:primaryType = "mynt:document"

├─myapp:title = "JSR 170"

├─myapp:lead = "Content Repository"

└─myapp:body

├─jcr:primaryType = "mynt:body"

└─myapp:paragraph

├─jcr:primaryType = "mynt:paragraph"

├─myapp:title = "Node Types"

└─myapp:text = "An important feature..."


where the source repository's namespace registry holds the mappings (in addition to the built-in ones):

myapp -> http://mycorp.com/myapp

and

mynt -> http://mycorp.com/mynt

would appear in the system view as:


<?xml version="1.0" encoding="UTF-8"?>
<sv:node xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:mix="http://www.jcp.org/jcr/mix/1.0"
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
xmlns:myapp="http://mycorp.com/myapp"
xmlns:mynt="http://mycorp.com/mynt"
sv:name="myapp:document">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mynt:document</sv:value>
</sv:property>
<sv:property sv:name="myapp:title" sv:type="String">
<sv:value>JSR 170</sv:value>
</sv:property>
<sv:property sv:name="myapp:lead" sv:type="String">
<sv:value>Content Repository</sv:value>
</sv:property>
<sv:node sv:name="myapp:body">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mynt:body</sv:value>
</sv:property>
<sv:node sv:name="myapp:paragraph">
<sv:property sv:name="jcr:primaryType" sv:type="Name">
<sv:value>mynt:paragraph</sv:value>
</sv:property>
<sv:property sv:name="myapp:title" sv:type="String">
<sv:value>Node Types</sv:value>
</sv:property>
<sv:property sv:name="myapp:text" sv:type="String">
<sv:value>An important feature...<sv:value>
</sv:property>
</sv:node>
</sv:node>
</sv:node>


Note that in the above, the XML has been formatted for readability. The actual XML stream might not have any extraneous whitespace between elements or attributes.