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

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Wed Nov 30 09:49:46 CET 2005


> More like this:
> 
> <PAGE>
>  <array>
>   <arrayElement index="10">
>    <HTML>
>     <value>Test</value>
>     <if>
>       <value>2</value>
>       <equals>1</equals>
>     </if>
>    <HTML>
>   </arrayElement index="10">
>   ...
>  </array>
> <PAGE>
> 
> IMHO it should be easier to write a DTD or schema for this.
> 
> Masi

Hello Masi,

Dmitry made a similar proposal. But if a build an abstract converter it 
doesn't know wich TS-properties should be converted to a xml element and 
wich should be converted to i.e. attributes.

But your idea could work. It could be done with a few some simple checks.
* If the property is a number it will be converted to the array.
* If the value of a property is in the cObjects array : HTML, TEXT, 
PAGE, etc. then it gets the Element name itself.

In fact that could work.

Regards

Elmar






-- 
Climate change 2005: Mexico, Guatemala, New Orleans, Sahel, Bangladesh,
Spain, Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.




More information about the TYPO3-dev mailing list