private void ParseInputTypeAnnotationsAttribute(int attNum)
{
Debug.Assert(!_input.IsRequiredAttribute(attNum), "All 'input-type-validation' attributes are optional.");
if (_input.MoveToXsltAttribute(attNum, "input-type-annotations"))
{
string value = _input.Value;
switch (value)
{
case "unspecified":
break;
case "strip":
case "preserve":
if (_compiler.inputTypeAnnotations == null)
{
_compiler.inputTypeAnnotations = value;
}
else
{
CheckError(_compiler.inputTypeAnnotations != value, /*[XTSE0265]*/SR.Xslt_InputTypeAnnotations);
}
break;
default:
if (!_input.ForwardCompatibility)
{
ReportError(/*[???]*/SR.Xslt_InvalidAttrValue, "input-type-annotations", value);
}
break;
}
}
}