public class CorrectHref extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.TreeMap<java.lang.String,org.vishia.xml.docuGen.CorrectHref.AnchorAndChapter> |
listAnchors
Index of all available anchors for hrefs inside this document.
|
protected SortedList |
listHref
Index of all hyperlinks with cross reference entry
All elements of this list are from type CrossHref.
|
protected SortedList |
listHyperlinkAssociationLeft
Index of all hyperlink associations sorted to sLeft for fast search.
|
Constructor and Description |
---|
CorrectHref() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argc)
Main-Programm called as command
|
protected java.util.TreeMap<java.lang.String,org.vishia.xml.docuGen.CorrectHref.AnchorAndChapter> listAnchors
catchAllAnchors(Element)
protected final SortedList listHref
protected final SortedList listHyperlinkAssociationLeft
setLabelAssociations(Element)
.
All elements of this list are from type HyperlinkAssociation.
A TreeMap can't be use because more as one element with the same key may be existing.public CorrectHref()
public static void main(java.lang.String[] argc)
super.addAboutInfo("CorrectHref"); super.addAboutInfo("made by Hartmut Schorrig, 2007-03-02 / " + sVersion); super.addHelpInfo("Corrects hyperlink references"); super.addHelpInfo("param: -i:INPUT -y:OUTPUT {-c:CTRL} [{-e:XML} -t:XSL] [-o:HTML] [-d:IDENT]"); super.addHelpInfo("-i:INPUT the input xml file to correct hrefs."); super.addHelpInfo("-y:OUTPUT the output xml file with corrected hrefs."); super.addHelpInfo("-c:CTRL the control.xml file containing Element HyperlinkAssociations at second level."); super.addHelpInfo("-e:XML an additional XML file containing additional for the cross references, see -tXSL."); super.addHelpInfo("-t:XSL an additional XSL file to generate cross references to external sources."); super.addHelpInfo("-o:HTML The output file to generate, only the deepness of directory is used."); super.addHelpInfo("-d:IDENT The ident of the document inside all of the CTRL-Files, than its HyperlinkAssociation is used.");
argc
- cmd-line-parameter