On Thursday, Nov 28, 2002, at 06:49 Europe/London, Gabriele Domenichini wrote:
Your problem is not simple. If I've understood you have resources record made like this:There is currently a field that holds a url snippet to the resource, as your example.
something.jpg | somewhere/somethingelse.mov | resourceFound.txt |
This makes perfect sense for binary assets that are loaded directly by the browser, we can just embed the asset.
With marked up text, however we do not have this simple ability to embed using the browser (unless we use iframe or something like that !).
I am looking at the possibility of storing the xml markup in an SQL field, but it would have to be parsed before it was useful.
Yes, I can invoke C/XInclude to do the job, but wanted to find a less clumsy way of handling it, other wise all 'resources' will have to have C/XInclude in their pipeline regardless of whether it is needed or not, as you cannot tell in advance what type a particular resource will be.
Well if this is the point, I think the best way to act is to make some xslt transformation after the sql transformation.
I don't have experiences about parsing text but I think the text generator do such a thing.A Generator is no good, we are past the Generation stage by the time we get the output of the SQL Query.
I used the Generation step to aggregate the page framework, SQL 'Macros', Site menus etc.
Anyhow I believe the TextGenerator is for parsing non-XML languages into XML.
If you have to make estraction and elaboration before aggregation I would use cinclude instead xinclude. The main difference between the is the two is the possibility of cinclude to invoke a specific pipeline (so a transformation) as source with the protocol "cocoon:/".We don't need internal pipelines for this ..... I have moved to avoid CIncluding internal pipelines since I found Caching does not work properly with them in 2.1
I find this very powerfull even if a little proprietary ;-)
I agree with the orientation of avoiding esql where possible, and I think that here it doesn't help a lot
Sorry if I'm not specific but I should know the project and even so it would take me time. I hope to have been useful somehow
well, thanks for your response regards Jeremy
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>