[aida] XHTML support in Aida 6.0

Janko Mivšek janko.mivsek at eranova.si
Sat Jan 24 15:48:11 CET 2009


nico pravi:

> I don't have time to look at the code right now, but how do elements
> render HTML 4 or XHTML? Is there an external XHTMLELements package or
> something?

No, you just set a page to be XHTML and all elements will know how to
render correctly for XHTML. Which means mostly to close the standalone
tags like IMG and BR with /> instead of > .

Look at method #tagClosing to see, how is this implemented in practice.


Janko



> Le mardi 20 janvier 2009 à 21:25 +0100, Janko Mivšek a écrit :
>> Dear all,
>>
>> I just added the XHTML support to Aida and now the website in new design 
>> http://aida.eranova.si:8000/, which is done in XHTML 1.0 Transitional, 
>> pass the HTML validation 100%.
>>
>> Default webpage doctype is HTML 4.01 Transitional, but you can set in 
>> your App the doctypes with following methods:
>>
>>      * setHTML401Strict
>>      * setHTML401Transitional
>>      * setXHTML10Strict
>>      * setXHTML10Transitional
>>
>> You can even mix doctypes in your app, every view can have its own doctype.
>>
>> In case of XHTML doctype, the HTML code will be generated properly, with 
>> self closing tags ( /> ) where appropriate (like in page breaks: <br/> )
>>
>> There is also a method WebElement>>isXHTML to check, when you are 
>> composing the XHTML page and when a HTML one.
>>
>> Best regards
>> Janko
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Aida mailing list
>> Aida na aidaweb.si
>> http://lists.aidaweb.si/mailman/listinfo/aida

-- 
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel:  01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565


More information about the Aida mailing list