Felix Röthenbacher wrote:

>> What is the meaning of <map:part src="{resource-type:format-xhtml}"/>?

[...]

Some more question I wonder how it is implemented:

- How is the serialization handled with different formats
  (pdf, etc.)? E.g. setting the mime-type to "application/pdf"?

That is up to you, it's not handled by the framework.

Some examples:

1) <map:read mime-type="application/x-pdf" src="{resource-type:format-pdf}"/>

   (whereas I'm not sure if the ResourceReader supports source resolving)

2) <map:generate src="{resource-type:format-xslfo}"/>
   <map:serialize type="fo2pdf"/>

3) <map:generate src="{resource-type:format-chart}"/>
   <map:serialize type="svg2png"/>


- What about the following lenya pipelines that build the
  page, etc.? Are those skipped?

They are a concern of the publication. The resource type format is
just about formatting the content.

But of course all of this is subject to discussion.

The main purpose of this concept is to move content formatting options
from the publication to the resource type itself. The publication shouldn't
be required to provide a {resource-type}2xhtml.xsl for each resource type
and output format.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to