generate report from multiple "find" results
Posted: Wed May 13, 2015 9:57 pm
I would like to run multiple "find" operations and create a single output from them. For example, I would like to:
- report the DOCTYPE
- report on specific attribute value found
- report on specific element found
- report on specific attribute found
- report on specific text string found in element
Normally, I write XSLT and can use the result-document output to write out results based on an XPath selector, but in this case, I want to run a process on hundreds of files and capture the document name and the results of the different "find" operations for each file. So I am wondering if XQuery would be a better way to go, but I don't have XQuery experience.
Also, I need to be able to run this process while ignoring the reference in the DOCTYPE to a DTD which may not be available.
Does anyone have some advice?
This may be a precursor for writing some Schematron, but first I want to know what the files contain and creating the report will give me some data to discuss with the person providing the files.
- report the DOCTYPE
- report on specific attribute value found
- report on specific element found
- report on specific attribute found
- report on specific text string found in element
Normally, I write XSLT and can use the result-document output to write out results based on an XPath selector, but in this case, I want to run a process on hundreds of files and capture the document name and the results of the different "find" operations for each file. So I am wondering if XQuery would be a better way to go, but I don't have XQuery experience.
Also, I need to be able to run this process while ignoring the reference in the DOCTYPE to a DTD which may not be available.
Does anyone have some advice?
This may be a precursor for writing some Schematron, but first I want to know what the files contain and creating the report will give me some data to discuss with the person providing the files.