[Typo3-dev] Validating TypoScript - Schema vs. DTD

Dimitri Tarassenko mitka at mitka.us
Tue Nov 29 21:50:37 CET 2005


Elmar,

On 11/29/05, Elmar Hinz <elmar.DOT.hinz at team.minus.red.dot.net> wrote:
> > <page name="page">
> >     <html name="10">
> >          <value>Test</value>
> >          <if><value>2></value><equals>1</equals></if>
> >     </html>
> >     <coa name="20">
> >           <html name="10"><value>test2</value></html>
> >     </coa>
> > </page>
> >
> How do you know during transformation from TS to XML that you have
> transform page to an attribute while you transform value as an elment?

The same way that you know that "value" should be a subelement and not
an attribute of "if" in your example;))) Anyhow, an interesting 
exercise but not something that's feasible in any way. Don't waste
your time on it;)

--
Dimitri Tarassenko


More information about the TYPO3-dev mailing list