64 // But the resolver cannot find the expected match, and raises a
65 // CatalogException.
66 { PREFER_SYSTEM, "-//REMOTE//DTD ALICE DOCALICE XML//EN",
67 "http://remote/dtd/alice/docAliceDummy.dtd" },
68
69 // The feature prefer is public, and the prefer attribute of a
70 // group entry is system. There's a match for the specified
71 // public id, and no match for the specified system id. But the
72 // resolver still cannot find the expected match, and raises a
73 // CatalogException.
74 { PREFER_PUBLIC, "-//REMOTE//DTD BOB DOCBOB XML//EN",
75 "http://remote/dtd/bob/docBobDummy.dtd"} };
76 }
77
78 private CatalogResolver createResolver(String prefer) {
79 return catalogResolver(
80 CatalogFeatures.builder().with(PREFER, prefer).build(),
81 "preferFeature.xml");
82 }
83 }
84
|
64 // But the resolver cannot find the expected match, and raises a
65 // CatalogException.
66 { PREFER_SYSTEM, "-//REMOTE//DTD ALICE DOCALICE XML//EN",
67 "http://remote/dtd/alice/docAliceDummy.dtd" },
68
69 // The feature prefer is public, and the prefer attribute of a
70 // group entry is system. There's a match for the specified
71 // public id, and no match for the specified system id. But the
72 // resolver still cannot find the expected match, and raises a
73 // CatalogException.
74 { PREFER_PUBLIC, "-//REMOTE//DTD BOB DOCBOB XML//EN",
75 "http://remote/dtd/bob/docBobDummy.dtd"} };
76 }
77
78 private CatalogResolver createResolver(String prefer) {
79 return catalogResolver(
80 CatalogFeatures.builder().with(PREFER, prefer).build(),
81 "preferFeature.xml");
82 }
83 }
|