Hi,

I was wondering whether the following structure is possible in an .xpl :

<p:processor name="oxf:xmldb-query">
  <p:input name="datasource" href="../datasource.xml"/>
  <p:input name="query" href="#validIdQuery"/>
  <p:output name="data" id="validId"/>
</p:processor>

This returns:

<validId>
  <AuthorityID>true/false</AuthorityID>
  <ResourceKey>true/false</ResourceKey>
</validId>

so then:

<p:choose href="#validId">
  <p:when test="/validId/Authority = 'true'>
  ...
    <p:choose href="#validId">
      <p:when test="/validId/ResourceKey = 'true'>
      ...
      </p:when>
    </p:choose>
  </p:when>
</p:choose>

When I try this, I get an error:

org.orbeon.oxf.common.ValidationException: oxf:/publish/publish-document-new.xpl, line 53, column 29 : ASTChoose branch number 2 does not declare the same ids [registryEntry] as the previous branches [] : oxf:/publish/publish-document-new.xpl, line 53, column 29: ASTChoose branch number 2 does not declare the same ids [registryEntry] as the previous branches []
at org.orbeon.oxf.processor.pipeline.ast.ASTNodeContainer$1IdInfoASTHandler .startChoose(ASTNodeContainer.java:114)
at org.orbeon.oxf.processor.pipeline.ast.ASTChoose.walk(ASTChoose.java:75)
at org.orbeon.oxf.processor.pipeline.ast.ASTNodeContainer.walk(ASTNodeConta iner.java:57)
at org.orbeon.oxf.processor.pipeline.ast.ASTPipeline.walkChildren(ASTPipeli ne.java:58)


Line 53 here refers to the first p:choose statement.

        Cheers,

        Matthew



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to