Skip to content
Permalink
Browse files
Hack XInclude fragid values
  • Loading branch information
ndw committed Oct 8, 2013
1 parent bb7b546 commit fe145e7b9174faaf1cf9c1e503cde68915f7c9aa
Showing 1 changed file with 5 additions and 1 deletion.
@@ -155,7 +155,11 @@ public boolean processStartElement(XdmNode node) throws SaxonApiException {

/* HACK */
if ("text".equals(parse) && node.getAttributeValue(_fragid) != null) {
xptr = "text(" + node.getAttributeValue(_fragid) + ")";
xptr = node.getAttributeValue(_fragid);
// FIXME: This is a total hack
if (!xptr.startsWith("text(")) {
xptr = "text(" + xptr + ")";
}
textfragok = true;
}

0 comments on commit fe145e7

Please sign in to comment.