xml - how to skip first comment on next page URL in xpath -


how skip first comment on next page url in xpath , put code? i'm working on following code:

<xq-param name="url" type="string">   <var name="url" /> </xq-param> <xq-expression>   <![cdata[                             declare variable $doc node() external;     declare variable $url xs:string external;     let $doc := if(matches($url,'pagenum_posts=\d+')) $doc//div[matches(@class,'post l\d+')][not(position()=1)] else $doc//div[matches(@class,'post l\d+')]     let $comments := $x in $doc      let $postedby := data($x//a[matches(@class,'txt_b') or matches(@name,'reply\d+')])     let $postedon := data($x//em[@class='author']/span)     let $contenttext := data($x//div[@class='col2'])     let $location := data($x//div[@class='col1']/em[@class='author']/a)     return         <comment>             <postedby>{$postedby}</postedby>             <authorprofile>                     <location>{$location}</location>             </authorprofile>             <postedon>{$postedon}</postedon>             <contenttext>{$contenttext}</contenttext>         </comment>     return $comments ]]> </xq-expression> 


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -