Menu

using Xquery

2010-07-17
2012-09-04
  • Armen Babakanian

    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>

     
  • nchandra

    nchandra - 2011-04-30

    The config ran without any errors. But there were no records int he resulting
    xml.

     

Log in to post a comment.