List Info

Thread: new resource handling...




new resource handling...
user name
2006-09-27 16:14:51
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://..."/>

So this functionality (ability to reference a format) would
need to be 
added to the lenyadoc protocol (source)?
This lenya:document element that you describe above would be
transformed 
into a cinclude|xinclude?

> 
> 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
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
> For additional commands, e-mail: dev-helplenya.apache.org
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )