Vicent Mas
Mon, 16 Nov 2009 03:14:29 -0800
On 2009-11-16 Thorsten Scherler <thorsten.scherler....@juntadeandalucia.es> said:
> On Mon, 2009-11-16 at 09:23 +0100, Vicent Mas wrote:
> > On 2009-11-14 "Sina K. Heshmati" <s...@khakbaz.com> said:
>
> ...
>
> >
> > 1) I wasn't very happy with the dirty trick of using an id attribute for
> > passing the second title. So I've extended the document-v2.dtd with a new
> > btitle element. I use this element to pass the body title:
> >
> > <document>
> > <head><title>Head title</title></head>
> > <body><btitle>Body title</btitle>
> > ...
>
> I am not sure whether you really want to do that since you need to
> maintain the resulting dtd.
>
I see.
> ...
> >
> > 3) By imitating content-title.ft I've created a new contract,
> > body-title.ft. It should create the body title. I've attached it to this
> > mail.
> >
> > 4) Imitating the dispatcher dataModel.xmap (in particular the title.xml
> > pipeline) I've modified my local sitemap and added the following lines:
> >
> > <map:pipeline>
> > <map:match pattern="**.btitle.xml">
> > <map:generate src="cocoon://{1}.xml" />
> > <map:transform src="{lm:dataModel-xml-document-to-btitle.xsl}" />
> > <map:serialize />
>
> Make sure that the above serializer returns xml. Seeing your error below
> I think that the default is xhtml. Try <map:serialize type="xml"/>
>
> That should work.
>
Indeed. Now it works fine :-) Anyway I'll think again about my global strategy
(extending the dtd or not). Thanks *a lot* for all your help and advices.
Vicent
::
Share what you know, learn what you don't
signature.asc
Description: This is a digitally signed message part.