if(context!=null) {
try {
XPath xpath = new XPath(context,null,new PrefixResolverImpl(this), XPath.MATCH);
((SRuleReceiver)parentState).onRule(new SRule(xpath,asserts,reports));
} catch( TransformerException e ) {
reader.reportError( SRELAXNGReader.ERR_INVALID_XPATH, context, e.getMessage() );
}
} else {
reader.reportError( SRELAXNGReader.ERR_MISSING_ATTRIBUTE, startTag.qName, "context" );