XML technologies / DocBook / Customizing DocBook / Removing attributes / Removing all attributes from an element
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
To remove all attributes from an element, use the parameter entity *.attlist, which must be set to IGNORE. For example, the following line disables all attributes of the element titleabbrev:
<!ENTITY % titleabbrev.attlist "IGNORE">DocBook 5 has a similar mechanism. In this case, add the following line to your customization file inside include:
<define name="db.titleabbrev.attlist">
<empty/>
</define>db.titleabbrev.attlist = empty
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top