[Xsltforms-support] Knotty XPath issue in select1 ref
Brought to you by:
alain-couthures
|
From: Winona S. <wsa...@gm...> - 2023-05-01 17:33:15
|
Hi All,
I'm wondering if someone can help me with a convoluted XPath I am trying to
write. The goal is to restrict the output of an itemset if the item
referred to matches certain conditions stored in a different instance.
This is what I am currently attempting:
<xf:itemset ref="instance('i-schemaConstraints')/*[local-name() =
local-name($currentNode)][1]/*:childElements[1]/*:element[count($currentNode/child::*[local-name()
= @ident]) < @maxOccurs]">
<xf:label ref="@ident"/>
<xf:value ref="@ident"/>
</xf:itemset>
The problem is I think I lose the context for the @ident attribute. I'm
attaching a very simple example form that illustrates the problem.
I am using XSLTForms version 1.7
Thanks for your help,
-Winona
|