Hi Damon,

The XUpdate bugs that you mention will be fixed in the final version that will be released very soon now. We'll post a message in the announce list as soon as it is available.

Alex


Damon Rand wrote:
Howdi,
  I am trying to use the xupdate processor.. I have been able to make
xupdate:remove work fine but can't get insert-after, update or append to
work properly.

  I want to be able to use xupdate to modify the instance with dynamically
generated results from a database. eg. My xpl interface is..

  <?xml version="1.0" encoding="UTF-8"?>
  <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";>
    <p:param type="input" name="instance"/>
    <p:param type="output" name="instance"/>

The xupdate processor is called as so...

  <p:processor uri="oxf/processor/xupdate">
    <p:input name="config" href="#resultset"/>
    <p:input name="data" href="#instance"/>
    <p:output name="data" ref="instance"/>
  </p:processor>

The #resultset is an xsl who main template looks like..

  <xsl:template match="/">
      <xu:modifications version="1.0"
xmlns:xu="http://www.xmldb.org/xupdate";>
        <xu:remove select="//instance/resultset"/>
        <!--xu:insert-after select="//instance/resultset[1]">
          <xu:element name="test">Test it</xu:element>
        </xu:insert-after-->
        <!--xu:update select="//instance/resultset[1]">
          Text
        </xu:update-->
        <!--xu:update select="//instance/resultset[1]">
          <resultset>Results created here with apply-templates</resultset>
        </xu:update-->
        <!--xu:append select="//instance/resultset">
          <xu:element name="resultset">
            <resultset>Results created here with apply-templates</resultset>
          </xu:element>
        </xu:append-->
      </xu:modifications>
    </xsl:template>

The results I get are..

  1. <xu:remove> works fine..
  2. <xu:insert-after> - Unsupported XUpdate element 'xu:insert-after'
  3. <xu:xu:update> - This works fine with plain text.
  4. <xu:xu:update> - Unknow insert element 'resultset'
  5. <xu:append> - Unknow insert element 'xu:element'

Any ideas how to achieve my goal with xupdate?


Damon.





_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users

_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to