throw new ParseException("Parsing the specified local-copy failed", getLocator());
}
}
}
return new IgnoreAnyChildReadHandler();
}
if ("data-definition".equals(tagName))
{
final String primaryFile = atts.getValue(getUri(), "ref");
if (primaryFile == null)
{
throw new ParseException("Required attribute 'ref' is not specified", getLocator());
}
if (parseDataDefinition(primaryFile) == false)
{
final String fallbackFile = atts.getValue(getUri(), "local-copy");
if (fallbackFile != null)
{
if (parseDataDefinition(fallbackFile) == false)
{
throw new ParseException("Parsing the specified local-copy failed", getLocator());
}
}
}
return new IgnoreAnyChildReadHandler();
}
if ("styles".equals(tagName))
{
final String primaryFile = atts.getValue(getUri(), "ref");
if (primaryFile == null)
{
throw new ParseException("Required attribute 'ref' is not specified", getLocator());
}
if (parseStyles(primaryFile) == false)
{
final String fallbackFile = atts.getValue(getUri(), "local-copy");
if (fallbackFile != null)
{
if (parseStyles(fallbackFile) == false)
{
throw new ParseException("Parsing the specified local-copy failed", getLocator());
}
}
}
return new IgnoreAnyChildReadHandler();
}
if ("layout".equals(tagName))
{
final String primaryFile = atts.getValue(getUri(), "ref");
if (primaryFile == null)
{
throw new ParseException("Required attribute 'ref' is not specified", getLocator());
}
if (parseLayout(primaryFile) == false)
{
final String fallbackFile = atts.getValue(getUri(), "local-copy");
if (fallbackFile != null)
{
if (parseLayout(fallbackFile) == false)
{
throw new ParseException("Parsing the specified local-copy failed", getLocator());
}
}
}
return new IgnoreAnyChildReadHandler();
}
return null;
}