Editing a schema using an external editor
Procedure
- Export a schema:
- In the Outline view, expand Data Source Schemas.
- Right-click a schema and select Export Schema.
- Select a location to save the .xsd file in and click OK.
- Open the .xsd file with a text editor.
- Edit the schema.
- Save the changes.
- Replace a schema:
- In the Document Studio Outline view, right-click the schema that you exported and select Replace Schema.
- Click Browse and select the .xsd file that you modified.
- Click OK.
If all of the queries in the new data source schema resolve with the queries that were added to your template, then the schema is replaced and you are not required to make any further changes.
If all of the queries in the new data source schema cannot be resolved, continue to the next step.
- If all of the queries in the new
data source schema cannot be resolved with the queries that were added
to your template, then you must select one of the following options:
- Remove data references: Allow PUB to remove the queries from your template that cannot be resolved with the data source schema.
- Specify valid replacement: Replace each unresolved query with a query that exists in the new data source schema.
- If you selected Specify
valid replacement, in the Specify Valid Replacement window, specify replacement queries. Select the cell in the Replacement Name column to choose a query from a dropdown list.
When the schema is replaced, PUB verifies that the new schema is compatible with the previous one. If the new schema is not compatible, there might be errors in your revisions.Verify that the schema is still synchronized with the data from the data provider. Generate a preview of your template to verify that the data is presented as expected. If there are errors in the schema that are affecting the output, you can review the error logs to identify the errors.