
You should use two elements for this, and hide the original one. I think the non-circularity requirement is pretty important actually. Note that you can refer to the same element of some other say, array instance, i.e., <element name="foo" .... dfdl:inputValueCalc="{ fn:concat(if (pos() == 1) then "" else ../foo[pos() - 1] , .) }" /> On Wed, Jun 26, 2013 at 11:28 AM, Steve Hanson <smh@uk.ibm.com> wrote:
The spec currently says that the expression in dfdl:outputValueCalc must not refer to itself. I am wondering if that is too restrictive. For example, what if I wanted to apply a simple transformation to the data before it is serialized, example:
<xs:element name="f1" type="xs:string" dfdl:outputValueCalc="{fn:upper-case(.)}" />
Regards
Steve Hanson Architect, IBM Data Format Description Language (DFDL) Co-Chair, OGF DFDL Working Group IBM SWG, Hursley, UK smh@uk.ibm.com tel:+44-1962-815848 Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
-- dfdl-wg mailing list dfdl-wg@ogf.org https://www.ogf.org/mailman/listinfo/dfdl-wg
-- Mike Beckerle | OGF DFDL Workgroup Co-Chair | Tresys Technology | www.tresys.com