use of com.sun.xml.xsom.util.ComponentNameFunction in project atlasmap by atlasmap.
the class SCDDriver method main.
public static void main(String[] args) throws Exception {
XSOMParser p = new XSOMParser();
for (int i = 1; i < args.length; i++) p.parse(args[i]);
XSSchemaSet r = p.getResult();
SCD scd = SCD.create(args[0], new DummyNSContext());
Collection<XSComponent> result = scd.select(r);
for (XSComponent c : result) {
System.out.println(c.apply(new ComponentNameFunction()));
print(c.getLocator());
System.out.println();
}
System.out.printf("%1d match(s)\n", result.size());
}
Aggregations