
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

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

Mike - I am not sure what would be the technical problem allowing outputValueCalc on the element to reference itself. Suman Kalia IBM Canada Lab WMB Toolkit Architect and Development Lead Tel: 905-413-3923 T/L 313-3923 Email: kalia@ca.ibm.com For info on Message broker http://www.ibm.com/developerworks/websphere/zones/businessintegration/wmb.ht... From: Mike Beckerle <mbeckerle.dfdl@gmail.com> To: Steve Hanson <smh@uk.ibm.com>, Cc: dfdl-wg@ogf.org Date: 06/26/2013 12:25 PM Subject: Re: [DFDL-WG] dfdl:outputValueCalc referencing itself Sent by: dfdl-wg-bounces@ogf.org 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 -- dfdl-wg mailing list dfdl-wg@ogf.org https://www.ogf.org/mailman/listinfo/dfdl-wg
participants (3)
-
Mike Beckerle
-
Steve Hanson
-
Suman Kalia