<HTMLScrapperConfig name="LOCScraperConfig" >

    <StateTransitions processedResultType="Record" begState="_None_">
       <HTMLEvent eventType="SimpleTag" tagType="input" fromState="_None_" toState="foundCheckbox" > 
          <InputAttribute attrName="name" attrVal="CHK" />
       </HTMLEvent>

       <HTMLEvent eventType="StartTag" tagType="a" fromState="foundCheckbox" toState="foundRecordTag" >
          <OutputAttribute attrName="href" outputTo="linkHref" />
       </HTMLEvent>
       <HTMLEvent eventType="EndTag" tagType="a" fromState="foundRecordTag" toState="foundRecord" />

       <HTMLEvent eventType="StartTag" tagType="a" fromState="foundRecord" toState="inRecord" >
          <OutputAttribute attrName="href" outputTo="linkHref" />
       </HTMLEvent>
       <HTMLEvent eventType="HandleText" fromState="inRecord" toState="inRecord" outputTo="linkText" append="true" />

       <HTMLEvent eventType="EndTag" tagType="a" fromState="inRecord" toState="_None_" processResult="true" />
    </StateTransitions>

    <OutputFormat>
       <NumRecords process="3" />
       <RootTag tagName="Records" />

        <ProcessedResult processedResultType="Record" tagName="Record" >
            <ProcessedElement tagName="Title" charDataFrom="linkText" />
            <ProcessedElement tagName="Link" charDataFrom="linkHref" />
            <ChildElement tagName="Details" elementDataFromHref="linkHref" replaceString="v1=|v3="
                          host="http://catalog.loc.gov" 
                          XMLDef="BASE_PATH/LibraryOfCongress/LOCDetails.xml" />
        </ProcessedResult>
    </OutputFormat>

</HTMLScrapperConfig>