XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Brian CottingsSubject: XSD path when associating to an XML to schema
Author: Brian Cottings
Date: 10 Feb 2015 10:17 PM
What causes the full path to be automatically inserted in an xml file when choosing the option to associate to xml file to a schema. Sometimes I get the full path, others I just get the xsd name. So I may get:
<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:///c:/Directory1/Documents/document1.xsd">

or I may get
<Report xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="document1.xsd"> .

What causes or one vs the other and can you set a default to insert the full path

Postnext
Ivan PedruzziSubject: XSD path when associating to an XML to schema
Author: Ivan Pedruzzi
Date: 11 Feb 2015 10:34 PM
Hi Brian,

The absolute form is used only when the schema resided on a different disk. In all other cases Stylus Studio should use the relative form.

Stylus Studio does not expose a setting to choose the behavior.

Do you really need to hard code the URL to the schema?
Is this for something outside Stylus Studio?

For validation purpose the namespace should suffix. The validation engine schema cache should load the appropriate schema.

In Stylus Studio you can associate a schema to a project folder then all documents attached to that folder will have the schema associated.



Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Brian CottingsSubject: XSD path when associating to an XML to schema
Author: Brian Cottings
Date: 12 Feb 2015 05:15 PM
Hi Ivan,
Yes we need the full path as we are generating these schemas for a document generation program that needs that path. We have created that path on our workstation hardrives so it matches the same path found on the server (so when its moved from the local machine to the servers everything stays the same).

Its seems that prior to x15R2 when I saved to my hardrive I was getting the full path ( file:///c:/Docs/Documents/test.xsd )in XML file - maybe it was different with Create vs. Associate? Looking through all my old xml files they have the full path, only the recent ones I have created have just the name.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.