Subject:Associate XML with Schema Author:Bill Shelley Date:15 Jan 2013 02:15 PM
I am using Stylus Studio to validate xml files that I am creating with a schema. Is there a way to load the schema so that I don't have to associate the file to the schema for every file?
I am testing several files and it's time consuming to click on associate XML with schema every time before I click on Validate.
Subject:Associate XML with Schema Author:Ivan Pedruzzi Date:15 Jan 2013 08:53 PM
Hi Bill,
Here two ways to do it:
1) Create a folder in the Stylus Studio project then right click on the folder then click on "Associate schema to folder". Then drag & drop all your XML files to that project folder and save the project.
After you have done that, you can simply open any XML document from the folder and validate it.
The validation command will create a schema cache with all schemata register in the project folder then will run the schema processor .
2) If you running Enterprise edition you could take advantage of Saxon creating a simple identity transformation using collection function to get all document nodes from a given folder on disk, then use its built-in validation capabilities.