public class AttributeChecks_valueTemplates extends AttributeChecks
AttributeChecks
.
Since "attribute value templates" are allowed in xslt code,
ill-defined attribute values (in XML sense) must further be analysed,
and possibly be removed from error sets.
The algorithm steps through the sets of all classified attributes.
and moves them from there to the set "computing" iff their values contain template
xpath code.
Since the base class AttributeChecks
is initialized from SAX ,
all attribute names are unique. ((FIXME stimmt das ???))Modifier and Type | Field and Description |
---|---|
protected Set<NamespaceName> |
additionalXslt |
protected TPathCache |
cache |
protected Map<NamespaceName,TPathCache.ExprClassified> |
computing
All attributes which must be computed; represented as parsed and classified
TPath expressions.
|
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
msg |
protected Set<NamespaceName> |
nonTemplates |
protected Set<NamespaceName> |
xsltFound |
atts, elDef, loc, missing, nsn2index, ok, undeclared, violateFixed, violateType
Constructor and Description |
---|
AttributeChecks_valueTemplates(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
TPathCache cache,
Attributes atts,
DTM.Element elDef,
Location<XMLDocumentIdentifier> loc,
Set<NamespaceName> additionalXslt) |
Modifier and Type | Method and Description |
---|---|
boolean |
check()
Call super.check() and look for "Attribute Value Templates" like "xx{yy}zz"
afterwards.
|
boolean |
correctAndConstant() |
Set<NamespaceName> |
getXsltFound() |
protected void |
retest(Set<NamespaceName> set) |
attValueByNamespaceName, check_more_tokens, check_one_token, check, dump, dump1, get_index, get_loc, get_missing, get_ok, get_undeclared, get_violateFixed, get_violateType, noConstructionProhibitingErrors, noErrors, sendErrorMessages_Undecl_Type_Fixed
protected Map<NamespaceName,TPathCache.ExprClassified> computing
protected Set<NamespaceName> additionalXslt
protected Set<NamespaceName> xsltFound
protected Set<NamespaceName> nonTemplates
protected final TPathCache cache
protected final MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
public AttributeChecks_valueTemplates(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, TPathCache cache, Attributes atts, DTM.Element elDef, Location<XMLDocumentIdentifier> loc, Set<NamespaceName> additionalXslt)
public Set<NamespaceName> getXsltFound()
public boolean correctAndConstant()
public boolean check()
TPathCache
for parsing.
Shift those attributes from their original set to computing
.
+ check
in class AttributeChecks
protected void retest(Set<NamespaceName> set)
see also the complete user documentation .