Menu

unknown source

Help
Bob C
2005-02-21
2013-04-16
  • Bob C

    Bob C - 2005-02-21

    I'm getting an 'unknown source' error when I try to use XpathExtract.

    I'm calling it from the command line like this:
    babeldoc process -p brix -f data\hrxmlfile1.xml

    Here is the relevant part of my config file:

    <stage-inst>
      <stage-name>getEmployer</stage-name>
    <stage-desc>retrieves the employer's ame</stage-desc>
    <stage-type>XpathExtract</stage-type>
    <option>
    <option-name>XPath</option-name>
    <option-value></option-value>
    <sub-option>
    <option-name>eeName</option-name>
    <option-value>hrxml:Organization/@organizationName</option-value>
    </sub-option>
    <option-value>true</option-value>
    </option>
    </stage-inst>

    Thank You,
    Bob

     
    • Sherman Wood

      Sherman Wood - 2005-02-21

      'Unknown source' sounds like an empty document. Is there actually a document in the pipeline?

      The XpathExtract stage uses the Apache XPathAPI. Check out the documentation for that API.

      Sherman

       
    • Bob C

      Bob C - 2005-02-21

      I think there is a document in the pipeline via the
      -f switch, e.g. babeldoc process -p brix -f data\hrxmlfile1.xml. Is this not the case? Anyway, I have no problem transforming the document if I enter the transform stage instead of the xPath stage (using the same command line arguments).

      Thanks,
      Bob

       
    • maxdaros

      maxdaros - 2005-02-23

      Hi Bob,

      can you post the exact log with the error?

      Bye,

      Massimo

       
    • Bob C

      Bob C - 2005-02-24

      Hi Massimo,

      This is a namespace issue. Please see thread 'Namespaces and XpathExtract for our workaround.

      Take Care,
      Bob

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.