Hi,
Just as a sanity check, I tried:
<xforms:setvalue ref="/form/document/vr:Resource/vr:title" value="concat(/form/authority, /form/document/vr:Resource/vr:title)"/>
<xforms:setvalue ref="/form/document/vr:Resource/vr:shortName" value="concat(/form/authority, /form/document/vr:Resource/vr:shortName)"/><xforms:setvalue ref="/form/document/vr:Resource/vr:identifier" value="concat(/form/authority, /form/document/vr:Resource/vr:identifier)"/>
<xforms:setvalue ref="/form/document/vr:Resource/vr:curation/vr:contributor" value="concat(/form/authority, /form/document/vr:Resource/vr:curation/vr:contributor)"/>
and in the instance document:
<form>
<document>
<vr:Resource>
<vr:title> has the full concatenated value
<vr:shortName> just has the authority value
<vr:identifier> just has the authority value
<vr:curation>
<vr:contributor> just has the authority value
...So it appears as though it works in some cases but not others but I cannot see a pattern to it. vr:title is xs:string as is vr:shortName and vr:contributor but vr:identifier is xs:anyURI.
vr:shortName has constraints on it but none of the others do.
Ideas?
Matthew
On Jan 25, 2005, at 11:03 AM, Matthew J. Graham wrote:
Hi,
Further to this, I now wonder whether there is a more general problem with the behaviour of concat as I having the same problem (with the same elements) in my page-flow.xml.
I am trying a workaround to the setvalue problem so in my page-flow.xml I have:
<xu:update select="/form/document/vr:Resource/vr:identifier" xmlns:vr="http://www.ivoa.net/xml/VOResource/v0.10">
<xu:value-of select="concat(document('oxf:instance')/form/authority, document('oxf:instance')/form/document/vr:Resource/vr:identifier)"/>
</xu:update>
but again this does not anything.
Any ideas?
Cheers,
Matthew
On Jan 22, 2005, at 12:13 AM, Matthew J. Graham wrote:
Hi,
It looks as though a bug has crept into the behaviour of xforms:setvalue from 2.6 to 2.7.2:
in my view I have:
<xforms:setvalue ref="/form/document/vr:Resource/vr:identifier" value="concat(/form/authority, /form/document/vr:Resource/vr:identifier)"/>
However, all this actually does is set the value of /form/document/vr:Resource/vr:identifier to just the value of /form/authority and not the concatenation of the two elements. If, however, I use something else, e.g. value="concat(/form/authority, /form/document/vr:Resource/vr:title", then the concatenation works fine. So it just seems to be that the same element cannot appear in the ref and the value statements.
Any ideas?
Cheers,
Matthew
------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user
