Differences between revisions 2 and 3
Revision 2 as of 2006-04-03 17:13:33
Size: 1070
Editor: JukkaZitting
Comment:
Revision 3 as of 2009-09-20 23:45:34
Size: 1074
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
The {{{jcr:mimeType}}} property specifies the [http://www.iana.org/assignments/media-types/ content type] of the resource, and the optional {{{jcr:encoding}}} specifies the [http://www.iana.org/assignments/character-sets character encoding] of text-based content types. The {{{jcr:mimeType}}} property specifies the [[http://www.iana.org/assignments/media-types/|content type]] of the resource, and the optional {{{jcr:encoding}}} specifies the [[http://www.iana.org/assignments/character-sets|character encoding]] of text-based content types.
Line 23: Line 23:
 * nt:resource is often used as the {{{jcr:content}}} child of a ["nt:file"] node
 * All nt:resource nodes are ["mix:referenceable"]
 * nt:resource is often used as the {{{jcr:content}}} child of a [[nt:file]] node
 * All nt:resource nodes are [[mix:referenceable]]

Binary resource.

Definition

[nt:resource] > mix:referenceable
- jcr:encoding     (STRING)
- jcr:mimeType     (STRING) mandatory
- jcr:data         (BINARY) mandatory primary
- jcr:lastModified (DATE)   mandatory IGNORE

Description

An nt:resource child node is normally used instead of a plain binary property when more resource metadata is required.

The jcr:mimeType property specifies the content type of the resource, and the optional jcr:encoding specifies the character encoding of text-based content types.

The resource content is stored as a binary stream in the jcr:data property that is also the primary property of the node. The jcr:lastModified should be updated whenever the resource is modified.

Comments and questions

nt:resource (last edited 2009-09-20 23:45:34 by localhost)