Forum Discussion
Martin_Ge
17 years agoNew Contributor
Thanks for the reply! At least now I know it's not there.
This is what I came up with so far. Doesn't handle nested multirefs yet but so far that functionality wasn't needed either. Maybe someone can use it.
This is what I came up with so far. Doesn't handle nested multirefs yet but so far that functionality wasn't needed either. Maybe someone can use it.
def getMultirefValue(String xpath, def holder) {
def reference = holder[xpath + "/@href"] - "#"
def valueXpath = "//*/multiRef[@id='" + reference + "']/text()"
def value = holder[valueXpath]
return value
}