forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vicent Mas <uve...@gmail.com>
Subject Re: xdocs title element and the title bar of browser windows
Date Mon, 16 Nov 2009 11:13:38 GMT
On 2009-11-16 Thorsten Scherler <thorsten.scherler.ext@juntadeandalucia.es> 
said:

> On Mon, 2009-11-16 at 09:23 +0100, Vicent Mas wrote:
> > On 2009-11-14 "Sina K. Heshmati" <sina@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


Mime
View raw message