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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Design a DTD to represent the ... (1)
-> + Surround SCM integration (3)
-> + Converting a csv file to xml u... (5)
-> + Legacy Format Handling (3)
-> + Size limit for XML documents (2)
-> + Can Stylus Studio easily expor... (3)
-> + Problem convert excel to xml (5)
-> + convert X12 EDI into XML in a... (2)
-> + Capturing the return data for ... (3)
-> + stamps.com wsdl issues (3)
-> + Preview issues (2)
-> + Stylus Studio X14 - XML to EDI... (3)
-> + Stylus Studio X14 - Overrides ... (4)
-> - Anyway to specify namespace pr... (6)
-> ->Anyway to specify namespa...
-> ->Anyway to specify namespa...
-> ->Anyway to specify namespa...
-> ->Anyway to specify namespa...
-> ->Anyway to specify namespa...
-> + StylusStudio 2010 crashes when... (6)
-> + Version Upgrade (2)
-> + How to write a if -else statem... (4)
-> + URGENT URGENT URGENT ! (EDIF... (3)
-> + X14 Saxon document uri problem (5)
-> + namespace problem on XML gener... (7)
-- Previous [301-320] [321-340] [341-360] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.