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
Al NormanSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Al Norman
Date: 11 Jan 2012 11:04 AM
I am currently using SS X14 Enterprise Suite. I am dealing with documenting a large number of schemas and, as part of that process, I generate XML from a schema. The generated xml file always uses prefixes like p1:, p2:, etc. In my documentation I am trying to standardize on consistent prefixes, so I am always having to convert p1: to nc:, for example. I know that the prefixes don't matter (as long as they're used consistently, that is), but I want to always use the nc: prefix when describing the elements in that namespace (http://niem.gov/niem/niem-core/2.0, in this case).

Is there a way in Stylus Studio to specify what prefix should be used when generating XML for a particular namespace?

Thanks

al

Postnext
Ivan PedruzziSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Ivan Pedruzzi
Date: 11 Jan 2012 03:25 PM

Hi Al,

Stylus Studio does not offer this functionality. I am adding your idea to our database.

If Stylus Studio would use the prefixes defined in the schema would this suffix your needs?

Ivan Pedruzzi
Stylus Studio Team

Postnext
Al NormanSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Al Norman
Date: 11 Jan 2012 03:39 PM
Yeah, that would work. One thought that I had was that within a project you can associate schemas with a project folder. That might be another way to accomplish this (i.e. by adding a new column 'Default Prefix' to each schema that you specify). But, now that I think of it, with nested schemas this could be labor-intensive (and I'm all for doing as little work as possible ;-).

al

Postnext
Ivan PedruzziSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Ivan Pedruzzi
Date: 21 Jan 2012 01:43 AM

Thanks Al,

We have published a new maintenance build (1814b) that implements your suggestion.

http://www.stylusstudio.com/update/X14.html

Ivan Pedruzzi
Stylus Studio Team

Postnext
Al NormanSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Al Norman
Date: 23 Jan 2012 10:18 AM
Wow! Thanks a bunch. I'll take it for a spin and let you know how it turns out.

al

Posttop
Al NormanSubject: Anyway to specify namespace prefixes when generating xml from xsd?
Author: Al Norman
Date: 23 Jan 2012 03:01 PM
Works like a charm! Thanks for the quick response.

al

 
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.