This element is used to establish a link between:
| its parent Kmehr element*
|
AND |
| another Kmehr* element |
| OR |
| a file (image, word, ...) |
|
that can be
|
| external (within another file on the web) |
| OR |
| within the same Kmehr message |
| OR |
| within the lnk element itself (autolink !) |
|
* we refer here to elements that can have an official ID = a kmehrmessage, a folder, a transaction, a heading, an item or a content
It can be used to establish relationships like:
- replacement of an element by a new version (TYPE='isanewversionof')
- response to a request (TYPE='isareplyto')
- documentation through attachments (TYPE='isdocumentedby')
- medical structural relationship (TYPE='isaconsequenceof')
It has five attributes:
- TYPE: is the type of relationship using a value of the CD-LNK scheme
- MEDIATYPE: media type as a value of the CD-MEDIATYPE scheme
- SIZE: in bytes
- URL: contains the url of the targeted element (if empty, the target is encapsulated in the content of the lnk element itself).
The URL must be specified using the XPATH specification. A few examples:
- URL="http://www.chu-charleroi.be/sim/12344556788.jpg" to refer to an image stored on a web server
- URL="http://www.s3.org/dmg12344556788.xml/kmehrmessage/../folder[id='1']/transaction[id='1']/item[id='7']" to refer to an element within an external file
- URL="../item[id='8']" to refer to an element within the same XML file
|