Download Content Delivery Reference Guide
Transcript
Chapter 10 Using metadata <modified timestamp="2003-07-14T22:58:00"/> <first-published timestamp="2003-07-15T22:58:00"/> <last-published timestamp="2003-07-17T22:58:00"/> <categories> <category name=”News”> <keyword>internet</keyword> <keyword>company</keyword> </category> </categories> <custom-meta> <meta> <embeddate type="dateTime">2003-06-05T12:08:00</embeddate> <text type="normalizedString">some meta text</text> <number type="decimal">123456789</number> <exlink>http://www.msn.com</exlink></meta> </custom-meta> </component-meta> Note The type attribute is added to the Custom metadata only when you are using the File System as your storage medium. 10.2.a Custom metadata examples The following is a fragment of XML metadata from a Component. It contains some basic metadata about the Component and an additional embedded schema, containing more useful information about the Component. <?xml version="1.0" encoding="UTF-8"?> <metadata> <author>Niels</author> <some-embedded-schema> <country><!--also embedded--> <code>nl</code> <language>dutch</language> <fullname>The Netherlands</fullname> </country> <city>Amsterdam</city> </some-embedded-schema> </metadata> Truncating metadata Truncation removes all nested elements, and only stores the top-level elements. The example above, is stored as: author=Niels Flattening metadata Flattening removes the hierarchy, and all elements are stored as though they are on the same level. For example: author=Niels code=nl language=dutch fullname=The Netherlands city=Amsterdam 78 Tridion R5