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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
'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
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
Hi Bob,
can you post the exact log with the error?
Bye,
Massimo
Hi Massimo,
This is a namespace issue. Please see thread 'Namespaces and XpathExtract for our workaround.
Take Care,
Bob