calling the document() function from within a for-each loop
Posted: Thu Sep 27, 2012 12:41 am
I need to process multiple documents, I have a list of filenames and am using a for-each loop to process the list
When inside the for-each, I can't use something like
because document-uri(/) means nothing in the context of a for-each loop
I tried a relative path from the folder of the xslt stylesheet
but it returns an empty-sequence()
I gave it the full path and it works
I can't use the full path as that path doesn't exist on the production server.
How can I get to the documents using a relative path?
When inside the for-each, I can't use something like
Code: Select all
document(resolve-uri('build.log', document-uri(/)))
I tried a relative path from the folder of the xslt stylesheet
Code: Select all
document('file:/../../working_files/build.log')
I gave it the full path and it works
Code: Select all
document( 'file:///home/scott/workspace/mbel-work/working_files/build.log')
How can I get to the documents using a relative path?