HTML Code

Converted Result

Basic

<html><div><p>Test</p></div></html>

<page><body><div><p>Test</p></div></body></page>

<html><div><p>First paragraph</p><h1>Title</h1><p><em>Paragraph</em></p></div></html>

<page><body><div><p>First Paragraph</p><h1>Title</h1><p><emphasis>Paragraph</emphasis></p></div></body></page>

<html><div><p>First Line<br />Second Line</p></div></html>

<page><body><div><p>First line<line-break />Second Line</p></div></body></page>

List

<html><div><ul><li>Item</li></ul></div></html>

<page><body><div><list item-label-generate="unordered"><list-item><list-item-body>Item</list-item-body></list-item></list></div></body></page>

<html><div><ol><li>Item</li></ol></div></html>

<page><body><div><list item-label-generate="ordered"><list-item><list-item-body>Item</list-item-body></list-item></list></div></body></page>

MoinMoin: DOM DocBook and HTML 2010/HTML-DOM/ConversionSnippets (last edited 2010-06-12 12:54:15 by ValentinJaniaut)