Rechercher une page de manuel
ElementTreeData.EmptyTagMode.3kaya
Langue: en
Version: March 2009 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
ElementTreeData::EmptyTagMode - Controls printing of empty elementsSYNOPSIS
ElementTreeData::EmptyTagMode< >- = Singleton()
- | ImpliedSingleton()
- | OpenAndClose()
DESCRIPTION
This data type is used by ElementTree.string(3kaya) and ElementTree.lazyPrint(3kaya) to control the printing of empty elements (i.e. elements that are defined as empty, not merely elements that happen to have no content).
Singleton or OpenAndClose are both usable in XML ( Singleton is usually more readable). If you are using this module to generate HTML (or other non-XML-based markup languages) then ImpliedSingleton should be used. The following list shows how each displays an empty br element.
- - Singleton : <br />
- - ImpliedSingleton : <br>
- - OpenAndClose : <br></br>
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre