forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <>
Subject Re: How to use XHTML as input format
Date Tue, 16 Aug 2005 00:45:28 GMT
Ferdinand Soethe wrote:
> What is required if I want to use XHTML as an input format.
> Just placing it in xdocs will not work, strangely enough if I do that
> with
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
> <html xmlns="">
>   <head>
>     <title>Testdocument XHTML</title>
>   </head>
>   <body>
>     <h1>Testchapter</h1>
>     <p>This is a test to see what attributes are passed through when processing
>     <table border="1" width="30%">
>       <tr>
>         <td>Zell 1-1</td>
>         <td>Zell 1-2</td>
>         <td>Zell 1-3</td>
>       </tr>
>       <tr>
>         <td>Zell 2-1</td>
>         <td>Zell 2-2</td>
>         <td>Zell 2-3</td>
>       </tr>
>     </table>
>   </body>
> </html>
> I get a Forrest page with empty content area while calling the pipeline
> body-... will produce a clean looking document.
> Do I need to add a new mapping to the source pipeline, what else would
> I need to do.

Yes, i think that all you need to do is add a new entry
to the sitemap for that source type. Either to your
project sitemap or to main/webapp/forrest.xmap in the core.

SourceTypeAction (content aware pipelines)

You ask what else. Well you need to construct pipelines
to get your content to match our internal format.
Perhaps re-use the html2xdoc transformer that is used for
handling the html sources.

Yes, the quicker we can go to xhtml2 as our internal format
the better. Then the sitemap would only need to do map:read.

Actually, this discussion would be useful as an FAQ,
to explain the power of this source type match method.


View raw message