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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Nov 30 09:14:52 CET 2005


Elmar Hinz schrieb:
> Hello,
> 
> a month ago we had a discussion about the future of TypoScript. We came 
> to the point that it is important to validate it. Without validation we 
> get less error messages about wrong compositions. That slowes down 
> production. This slowdown is compensed by a very short form of notation 
> in comparism to XML. But we don't feel really lucky without the 
> possibility of validation. A lot of TYPO3 users would prefer XML.
> 
> Validation is an important point. But the discussion came to no real 
> result if validation of TypoScript could be possible. I guess the reason 
> for this is that only few of us really know how validation works.
> 
> I currently make some thoughts about converting TS to XML and to 
> validate that.
> 
> 
> page = PAGE
> page.10 = HTML
> page.10.value = Test
> page.10.if.value = 1
> page.10.if.equals = 2
> page.20 = COA
> page.20.10 = HTML
> page.20.10.value = Test

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




More information about the TYPO3-dev mailing list