public class XHTMLDialect extends DefaultXMLDialect
CONSTRAINT_DOCTYPE, CONSTRAINT_DOCTYPE_UNBOXED, CONSTRAINT_PUBLIC_DOCTYPE, CONSTRAINT_PUBLIC_DOCTYPE_UNBOXED, CONSTRAINT_ROOT, CONSTRAINT_ROOT_UNBOXED, CONSTRAINT_SYSTEM_DOCTYPE, CONSTRAINT_SYSTEM_DOCTYPE_UNBOXED, CONSTRAINT_XMLNS, CONSTRAINT_XMLNS_UNBOXED
Constructor and Description |
---|
XHTMLDialect() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkDoSkipMetaTag(java.lang.String key,
java.lang.String value) |
void |
defineDialect(XHTMLOptions options)
Actually defines the dialect.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getSkipMetaAttributes() |
java.util.regex.Pattern |
getSkipRegExpPattern() |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolves external entites if child filter needs it.
|
java.lang.Boolean |
validateIntactTag(java.lang.String tag,
Attributes atts)
In the XHTML filter, content should be translated in the
following condition: The pair attribute-value should not have been
declared as untranslatable in the options
|
java.lang.Boolean |
validateTranslatableTagAttribute(java.lang.String tag,
java.lang.String attribute,
Attributes atts)
Returns for a given attribute of a given tag if the attribute should be
translated with the given other attributes present.
|
constructShortcuts, defineConstraint, defineContentBasedTag, defineIntactTag, defineIntactTags, defineOutOfTurnTag, defineOutOfTurnTags, defineParagraphTag, defineParagraphTags, definePreformatTag, definePreformatTags, defineShortcut, defineShortcuts, defineTranslatableAttribute, defineTranslatableAttributes, defineTranslatableTagAttribute, defineTranslatableTagAttributes, defineTranslatableTagsAttribute, getClosingTagRequired, getConstraints, getContentBasedTags, getForceSpacePreserving, getIntactTags, getOutOfTurnTags, getParagraphTags, getPreformatTags, getShortcuts, getTagsAggregationEnabled, getTranslatableAttributes, getTranslatableTagAttributes, handleXMLTag, setClosingTagRequired, setForceSpacePreserving, setTagsAggregationEnabled, validateContentBasedTag, validateParagraphTag, validatePreformatTag, validateTranslatableTag
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
null
.resolveEntity
in interface XMLDialect
resolveEntity
in class DefaultXMLDialect
public void defineDialect(XHTMLOptions options)
public java.lang.Boolean validateTranslatableTagAttribute(java.lang.String tag, java.lang.String attribute, Attributes atts)
validateTranslatableTagAttribute
in interface XMLDialect
validateTranslatableTagAttribute
in class DefaultXMLDialect
public java.util.regex.Pattern getSkipRegExpPattern()
public java.util.HashMap<java.lang.String,java.lang.String> getSkipMetaAttributes()
public boolean checkDoSkipMetaTag(java.lang.String key, java.lang.String value)
public java.lang.Boolean validateIntactTag(java.lang.String tag, Attributes atts)
validateIntactTag
in interface XMLDialect
validateIntactTag
in class DefaultXMLDialect
tag
- An XML tagatts
- The attributes associated with the tagfalse
if the content of this tag should be
translated, true
otherwise