Permalink
Browse files

Hack XInclude fragid values

  • Loading branch information...
ndw committed Oct 8, 2013
1 parent bb7b546 commit fe145e7b9174faaf1cf9c1e503cde68915f7c9aa
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/com/xmlcalabash/library/XInclude.java
@@ -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.