public static interface ConfigurableXMLRewriter.IMergeLinkAdjuster
Modifier and Type | Method and Description |
---|---|
String |
getMergedID(String id)
Rewrite an XML ID.
|
String |
getMergedLink(String prefix,
String fragment)
Rewrite a single link (e.g.,
textgrid:4711#foo ) for merging. |
String getMergedID(String id)
id
- the ID in the original XML documentString getMergedLink(String prefix, String fragment)
textgrid:4711#foo
) for merging.
This is called for every single link (according to the rewrite spec)
encountered in the document to rewrite.prefix
- The non-fragment part of the link, e.g.:
textgrid:4711
. May be null or empty.fragment
- The fragment part of the link, e.g.: foo
. May be
null or empty.#foo.4711
. If
this is null
, the link will not be modified.Copyright © 2018 TextGrid. All rights reserved.