Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

html element



The "html" element allows to add included any embedded html content.

Overview

You just have to put any html constructs you want under this element. The tool will just add these elements at the position where you put them, regardless of their content.

Validity

Keep in mind that the tool will not check for the validity of the content under the "html" tag (almost any xhtml content will be allowed, providing it is valid xml[1]
See not allowed elements for the small list of elements whcih are not allowed in the content
), so you may have strange result in the final html result in the wiki output if you don't take care of this content.

The partial schema specification for the element is:
   <xs:complexType name="html">
      <xs:sequence>
         <xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>

As you see in the above element specification in the schema, the content under the "html" tag must still be well-formed xhtml, because the tool will still check for the correctness of the xml file for the article. However the tool will not check for the actual names and types of the elements.

Not allowed elements

The "script" and "link" element are the only xhtml elements which are not allowed in the html content.

Limitations

The content "html" element will not be rendered for DOCX generation. However, the PDF generation has partial support for this element.

Example

  <html>
     <font style="color:blue">Embedded html content</font>
  </html>
Result:Embedded html content

Notes

  1. ^ See not allowed elements for the small list of elements whcih are not allowed in the content

See also


Categories: syntax

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.