writer2latex.xhtml
Class XhtmlDocument
- Document, OutputFile
public class XhtmlDocument
An implementation of Document
for
XHTML documents.
static int | XHTML10 - Constant to identify XHTML 1.0 strict documents
|
static int | XHTML11 - Constant to identify XHTML 1.1 documents (not used currently)
|
static int | XHTML_MATHML - Constant to identify XHTML + MathML documents
|
static int | XHTML_MATHML_XSL - Constant to identify XHTML + MathML documents using the xsl transformations
from w3c's math working group (http://www.w3.org/Math/XSL/)
|
XHTML10
public static final int XHTML10
Constant to identify XHTML 1.0 strict documents
XHTML11
public static final int XHTML11
Constant to identify XHTML 1.1 documents (not used currently)
XHTML_MATHML
public static final int XHTML_MATHML
Constant to identify XHTML + MathML documents
XHTML_MATHML_XSL
public static final int XHTML_MATHML_XSL
Constant to identify XHTML + MathML documents using the xsl transformations
from w3c's math working group (http://www.w3.org/Math/XSL/)
XhtmlDocument
public XhtmlDocument(String name,
int nType)
Constructor. This constructor also creates the DOM (minimal: root, head,
title and body node only) - unlike the constructors in
writer2latex.xmerge.DOMDocument.
name
- Document
name.nType
- the type of document
createHeaderFooter
public void createHeaderFooter()
getBodyNode
public Element getBodyNode()
getContentNode
public Element getContentNode()
getEncoding
public String getEncoding()
getExtension
public static final String getExtension(int nType)
getFooterNode
public Element getFooterNode()
getHeadNode
public Element getHeadNode()
getHeaderNode
public Element getHeaderNode()
getPanelNode
public Element getPanelNode()
getTitleNode
public Element getTitleNode()
readFromTemplate
public void readFromTemplate(XhtmlDocument template)
setContentDOM
public void setContentDOM(Document doc)
setContentNode
public void setContentNode(Element contentNode)
setEncoding
public void setEncoding(String s)
setNoDoctype
public void setNoDoctype(boolean b)
write
public void write(OutputStream os)
throws IOException
Write out content to the supplied OutputStream
.
(with pretty printing)
- write in interface OutputFile
- write in interface DOMDocument