Add INDEX_SEPARATOR.
This commit is contained in:
parent
c667a7e4ba
commit
4a9e3dd133
3 changed files with 3 additions and 2 deletions
Binary file not shown.
BIN
dist/xid.jar
vendored
BIN
dist/xid.jar
vendored
Binary file not shown.
|
@ -13,6 +13,7 @@ import org.w3c.dom.*;
|
|||
public class Presenter
|
||||
{
|
||||
static protected org.apache.log4j.Logger log;
|
||||
static final public char INDEX_SEPARATOR = '_';
|
||||
|
||||
static
|
||||
{
|
||||
|
@ -781,7 +782,7 @@ public class Presenter
|
|||
// Don't forget the list case.
|
||||
if ((attr.getNodeName ().equals ("id")) && (prefix.length () != 0))
|
||||
{
|
||||
result.append ('_');
|
||||
result.append (Presenter.INDEX_SEPARATOR);
|
||||
result.append (prefix);
|
||||
}
|
||||
|
||||
|
@ -1197,7 +1198,7 @@ public class Presenter
|
|||
|
||||
if ((attribute.getKey ().equals ("id")) && (prefix.length () != 0))
|
||||
{
|
||||
result.append(" " + attribute.getKey () + "=\"" + attribute.getValue () + '_' + prefix + "\"");
|
||||
result.append(" " + attribute.getKey () + "=\"" + attribute.getValue () + Presenter.INDEX_SEPARATOR + prefix + "\"");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue