Skip to content

Commit

Permalink
WIP - Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Sep 2, 2024
1 parent 23f741b commit affb1fd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathExc

private Item convert(Item item) throws XPathException {
if (atomize || item.getType() == Type.UNTYPED_ATOMIC || Type.hasMember(Type.NUMERIC, requiredType) && Type.subTypeOfUnion(item.getType(), Type.NUMERIC)) {
// if (atomize || item.getType() == Type.UNTYPED_ATOMIC || /*Type.hasMember(Type.NUMERIC, requiredType) &&*/ Type.subTypeOfUnion(item.getType(), Type.NUMERIC)) {
try {
if (Type.subTypeOf(item.getType(), requiredType)) {
return item;
Expand All @@ -130,6 +131,7 @@ private Item convert(Item item) throws XPathException {
throw new XPathException(expression, e.getErrorCode(), error.toString());
}
}
// TODO(AR) need to consider the cases where the convert is doing nothing... what is its purpose from OpNumeric then?
return item;
}

Expand Down

0 comments on commit affb1fd

Please sign in to comment.