Project

Profile

Help

collection catalogue error

Added by Anonymous almost 15 years ago

Legacy ID: #7896834 Legacy Poster: pvallone (pvallone)

Hi I am using the collection function to pull xml files from a directory (Saxon 9.1.0.7). I have the following xslt instruction that runs fine from the command line but fails when run in an application <xsl:for-each select="for $x in collection('file:///C:/sandbox//Books?select=*.xml;recurse=yes;on-error=ignore') return saxon:discard-document($x)"> Error: FODC0004: collection catalogue must contain top-level element Thanks for your help


Replies (2)

RE: collection catalogue error - Added by Anonymous almost 15 years ago

Legacy ID: #7896840 Legacy Poster: pvallone (pvallone)

Looks like SourceForge cut my message up. Here is the xslt: <xsl:for-each select="for $x in collection('file:///C:/sandbox//Books?select=*.xml;recurse=yes;on-error=ignore') return saxon:discard-document($x)">

RE: collection catalogue error - Added by Anonymous almost 15 years ago

Legacy ID: #7896845 Legacy Poster: pvallone (pvallone)

Sorry, SourceForge wont allow me to post my xslt.. try this xsl:for-each select="for $x in collection('file:///C:/sandbox//Books?select=*.xml;recurse=yes;on-error=ignore') return saxon:discard-document($x)"

    (1-2/2)

    Please register to reply