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)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ 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.