for some off reason I'm getting an error using two Xquery parameters. Could somebody point out what is the error? here is my complete code:
<config charset="ISO-8859-1">
<var-def name="url">
http://www.courtinfo.ca.gov/reference/rfp/
</var-def>
<var-def name="doc_page">
<html-to-xml>
<http url="${url}"/>
</html-to-xml>
<var-def name="rfps">
<xpath expression="//table/tbody/tr/td/table/tbody/tr/td/ul/li">
<template>
${doc_page}
</template>
</xpath>
<file action="write" path="test/AOC_California_Courts.xml" charset="UTF-8">
<loop item="item" index="i">
<list>
</list>
<body>
<empty>
<var-def name="pdfLink">
<xpath expression="//a/@href">
${item}
</empty>
<xquery>
<xq-param name="item"> </xq-param>
<xq-param name="pdfLink"> </xq-param>
<xq-expression><![CDATA]>
</xq-expression>
</xquery>
</body>
</loop>
</file>
</config>
The config ran without any errors. But there were no records int he resulting xml.
Log in to post a comment.
for some off reason I'm getting an error using two Xquery parameters. Could
somebody point out what is the error? here is my complete code:
<config charset="ISO-8859-1">
<var-def name="url">
http://www.courtinfo.ca.gov/reference/rfp/
</var-def>
<var-def name="doc_page">
<html-to-xml>
<http url="${url}"/>
</html-to-xml>
</var-def>
<var-def name="rfps">
<xpath expression="//table/tbody/tr/td/table/tbody/tr/td/ul/li">
<template>
${doc_page}
</template>
</xpath>
</var-def>
<file action="write" path="test/AOC_California_Courts.xml" charset="UTF-8">
<loop item="item" index="i">
<list>
</list>
<body>
<empty>
<var-def name="pdfLink">
<xpath expression="//a/@href">
<template>
${item}
</template>
</xpath>
</var-def>
</empty>
<xquery>
<xq-param name="item"> </xq-param>
<xq-param name="pdfLink"> </xq-param>
<xq-expression><![CDATA]>
</xq-expression>
</xquery>
</body>
</loop>
</file>
</config>
The config ran without any errors. But there were no records int he resulting
xml.