Hi Andreas,
Andreas Hartmann wrote:
Doug Chestnut wrote:
[...]
can somebody who's into the asset code clarify how assets are
differenciated from documents for the purpose of the insertAsset
usecase? i'd like to see this set documented and set in stone somewhere.
since i'm trying to unify the insertAsset and insertImage usecases: how
do we tell images (or in fact anything that can be directly displayed in
the rendered page) from "binary" assets (i.e. stuff that will be
displayed as a link, such as pdfs)?
Currently "resource" doctypes are referenced as assets.
Perhaps this should be handled instead by formats of the doctype
instead of a particular doctype. This way, any document that has an
image representation would be treated as an image, etc.
+1
{resource-type:format-xhtml-inline} could return an XML snippet
<xhtml:object data="..." title="..."/>
It could be included using for instance
<lenya:document src="lenyadoc://..."/>
BTW, this could be used for XML documents as well, the xhtml-inline
format would just return an <xhtml:div> or something like that.
-- Andreas
Hmm, I was thinking more like this:
<format name="rss-item" type="dc:collection" uri="cocoon://modules/xhtml
<format name="pdf" type="dc:text" uri="cocoon://modules/xhtml/pdf"/>
<format name="png" type="dc:image"
uri="cocoon://modules/svg/raster-html-as-png"/>
<format name="xhtml" type="dc:text"
uri="cocoon://modules/xhtml/xhtml.xml"/>
<format name="webdavGET" type="dc:dataset"
uri="cocoon://modules/xhtml/davget.xml"/>
<format name="luceneIndex" type="dc:dataset"
uri="cocoon://modules/xhtml/lucene-index"/>
add the DCMI Type Vocabulary as a type attribute so that one doesn't
have to predict the mime-type (should be handled by the resource-type).
If I wanted to create a collection (slide show) doctype/restype I could
use the api to find all child (or some other relationship) documents
that have a dc:collection format. My collection doctype/restype could
have a dc:collection format, as well as dc:dataset format, as well as a
dc:image format, as well as ...
If Dublin Core doesn't have a type that fits your need, use your own
namespaced type.
--Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]