forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <>
Subject Re: Howto use <div> or <span> within the document-dtd?
Date Fri, 18 Jan 2008 17:16:05 GMT
Ross, Just to get my understanding right:

> A better approach is to add your own DTD that supports the elements you 
> want to use, see 
> Adding your own DTD with transformation to XDoc means you still validate 
> the XML, which will prevent one set of funnies (i.e. badly formed XML), 
> but it still leaves you open to breaking some output formats if your XSL 
> keeps non-XDoc elements in the output.

The transformation is from myDTD to Forrest's internal format.
The <span> tag still isn't present in xdoc.

So this works because Forrest isn't so strict to validate the xml further
down its processing pipeline. One may use the same feature (bug?) writing 
an input plugin thus bypassing Forrests validation of its internal format.

With other words:
   Forrest validates the input files when read "from disk"
   but afterwards is "sloppy" about validation and passes
   unknown tags on to the output.

In the end <span> gets passed on to HTML and the browser knows how to
handle it. Luckily. With a the tag named <funny-span> your content would
not show up: browsers tend to ignore unknown tags (1).

Breaking other output formats means that either further processing steps
fail because of unknown tags or these tags get ignored.

Am I right?

This is because Forrest's xdoc is not very "rich" semantically.
A switch to XHTML as internal format is envisioned for Forrest.
This will offer more flexibility.


(1) You may see this effect when inspecting any HTML page of your Forrest
     site with "body-" prefixed: there are <tocitems> in the source that
     the browser ignore.

> Ross

User Interface Design GmbH, Ludwigsburg, Germany
Phone/Fax  +49 7141 37700-46/-99, Mobile +49 170 4914567
E-mail *

Martin-Luther-Stra├če 57-59, D-71636 Ludwigsburg
Truderinger Strasse 330, D-81825 Muenchen
Friedrichsring 46, D-68161 Mannheim

Legal information according to EHUG:
User Interface Design GmbH; Managing Directors: Dr. Claus Goerner,
Franz Koller; Head office: Ludwigsburg; Commercial register of the
local court of Stuttgart, Germany, HRB 205519

View raw message