On Tue, 06 Oct 2009 02:59:06 -0700, Selven Xavier <[email protected]> wrote:

We have created and loaded new custompipeline.xml which convert html to
xhtml document.  The custompipeline.xml looks as shown below:

   <success-action>
      <module>/ML/cpf/actions/success-action.xqy</module>
   </success-action>

   <failure-action>
      <module>/ML/cpf/actions/failure-action.xqy</module>
   </failure-action>

   <state-transition>
      <annotation>
      Convert HTML documents and only HTML documents.
      </annotation>

      <state>http://marklogic.com/states/initial</state>
      <on-success>http://marklogic.com/states/converted</on-success>
      <on-failure>http://marklogic.com/states/error</on-failure>
      <priority>9200</priority>

      <execute>
         <condition>
            <module>/ML/cpf/actions/mimetype-condition.xqy</module>
            <options xmlns="/ML/cpf/actions/mimetype-condition.xqy">
               <mime-type>text/html</mime-type>
            </options>
         </condition>

         <action>
            <module>/ML/cpf/actions/convert-html-action.xqy</module>
            <options xmlns="/ML/cpf/actions/convert-html-action.xqy">
               <destination-root/>
               <destination-collection/>
            </options>
         </action>
      </execute>
   </state-transition>


First, I would strongly suggest you not change the default failure and
success actions in any way in a pipeline, and that includes changing
their location, as you have done here.

We have also created a "domain" with "evaluation context” pointing to the
created database <<training>> in "module" dropdown and "/" in root text box
[i.e. all the action and condition related pipeline files are kept under
training database in root “/” directory]. When we try to drag and drop any html file through webdav, the html file is not getting converted into xhtml file. Following is the error log message we are getting in the error log
file. Please help us on this regards.


2009-10-06 15:19:43.737 Warning: TaskServer: training: on-state-enter
/testfile.html condition failed XDMP-TEXTNODE:
/training/ML/cpf/actions/mimetype-condition.xqy -- Server unable to build
program from non-text document

The error is a little misleading, but what it means is that the server couldn't put together a module from the module at the indicated location. This could
be because there was no module there at all, or because permissions didn't
allow it to be read, or it wasn't loaded as a text file, or because some imported
module couldn't be found.

The message is complaining that it was looking for the module under /training/ML/.. which suggests that you need to double-check that you have / as your root, and not /training/. The detailed error message suggests that the root is, in fact, /training/. The other thing to check is that you don't have multiple domains
acting on the same document -- it could be that the wrong domain is getting
triggered. You want to make sure that a document applies to only one domain
at a time.

//Mary

[email protected]
Principal Engineer
Mark Logic Corporation
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to