4 Replies Latest reply: Feb 1, 2011 3:30 AM by 706771 RSS

    XML Publisher sum function

    706771
      Dear Members :

      I have following template:

      G_1
      item1, item2 ...
      G-2
      item5, ...
      G_3
      item9, ...
      G_3
      G_2
      sum(item5)
      G_1

      Getting 0 in field placeholder sum(item5), though item5 has value. If I put the same within G_2 group, getting the correct value. Why can't it sum outside of G_2 group ?
      I am on XML Publisher ver 4.5 on application server (Oracle 11.5.10).

      Also if I try to declare a variable after group G_1, with :

      <?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
      I get the following error in log of Concurrent Program :

      ---------------------------------------------------------------------------
      XML Publisher: Version : 11.5.0 - Development

      Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

      XDOREPPB module: XML Report Publisher
      ---------------------------------------------------------------------------

      Current system time is 31-JAN-2011 00:51:47

      ---------------------------------------------------------------------------

      XML Report Publisher 4.5
      Updating request description
      Waiting for XML request
      Retrieving XML request information
      Preparing parameters
      Process template
      --XDOException
      oracle.xml.parser.v2.XPathException: Variable not defined: '_XDOCTX'.
      at oracle.xml.parser.v2.XPathVarReference.getValue(XPathVarReference.java:58)
           at oracle.xml.parser.v2.XPathExtFunction.getValue(XPathExtFunction.java:131)
      .................................

      Could you please tell where I am going wrong ? Is it that the XML Publisher version doesn't support this ?

      Thanks.
      Atanu

      Edited by: user11184124 on Jan 30, 2011 11:14 AM