public class XMLReader extends AbstractReader
This reader can process citations from any XML, XHTML, or HTML file - it does not parse the content. Its only job is to understand fragment labels embedded in XML comments.
It wraps the read content into a <pre class="prettyprint"/> tag, which
helps you to detect XML code blocks in your output document, e.g. for a
Javascript syntax highlighter.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT_SOURCE_DIRECTORIES |
protected ContentFilter[] |
filters |
protected ContentFileHandler |
handler |
static Pattern |
PATTERN_FRAGMENT_LABEL |
protected ContentPrinter |
printer |
| Constructor and Description |
|---|
XMLReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendContent(org.seamless.xhtml.XHTMLElement parent,
File file,
CitationAnchor citation) |
org.seamless.xhtml.XHTML |
read(CitationAnchor citation,
Context context) |
addFilePath, appendTitle, getParser, getXPath, isGenerateId, resolveFilepublic static final String CONTEXT_SOURCE_DIRECTORIES
public static final Pattern PATTERN_FRAGMENT_LABEL
protected final ContentFileHandler handler
protected final ContentPrinter printer
protected final ContentFilter[] filters
public org.seamless.xhtml.XHTML read(CitationAnchor citation, Context context)
protected void appendContent(org.seamless.xhtml.XHTMLElement parent,
File file,
CitationAnchor citation)
Copyright © 2015 4th Line GmbH, Switzerland. All Rights Reserved.