|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.relaxng.converter.dtd.DTD2RestrRelaxNG
public class DTD2RestrRelaxNG
Converter from DTD to Restricted RELAX NG (using Trang).
| Constructor Summary | |
|---|---|
DTD2RestrRelaxNG()
Constructs a new converter. |
|
| Method Summary | |
|---|---|
Document |
convert(URL url)
Loads DTD schema and converts it to Restricted RELAX NG. |
Document |
convert(URL url,
String root)
Loads DTD schema and converts it to Restricted RELAX NG. |
Map<String,String> |
getNameMap()
Returns map from DTD element name ({namespaceURI}localname) to corresponding definition name in output schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTD2RestrRelaxNG()
| Method Detail |
|---|
public Document convert(URL url)
throws ParseException
url - URL of DTD schema
ParseException - if error occurs during parsing
public Document convert(URL url,
String root)
throws ParseException
url - URL of DTD schemaroot - expanded qualified name of root element (on the form {namespaceURI}localname);
if null, use Trang's auto detection
ParseException - if error occurs during parsingpublic Map<String,String> getNameMap()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||