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
Ron HyltonSubject: namespace problem on XML generated from schema
Author: Ron Hylton
Date: 28 Nov 2011 11:40 AM
Hi. I'm having a problem with somehing that ought to be very simple so I suspect I'm missing something basic.

I have a schema where the elemnts are in a namespace for which I use the prefix "cva", i.e.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.xyz.com/CVARequest"
xmlns:cva="http://www.xyz.com/CVARequest"
elementFormDefault="qualified" xmlns:xsd="undefined">

I right click on the schema and choose Create XML Document. I have the options set so the initial result is a valid document to use as a template. The generator uses p1 as the namespace prefix, i.e.

<?xml version="1.0"?>
<p1:CVARequest id="one space" trigger="one space" xmlns:p1="http://www.xyz.com/CVARequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xyz.com/CVARequest file:///c:/Documents%20and%20Settings/zzzz/My%20Documents/schema/CVARequest.xsd">
<p1:ResultsFile name="one space" append="false"/>

However when I insert a new element from the tree view the inserted elements have an invalid double namespace prefix p1:cva:, e.g.

<p1:cva:ResultsFile/>

Can you tell me what I should set to get correct prefixes on the inserted elements?

Thanks,
Ron

Postnext
Ivan PedruzziSubject: namespace problem on XML generated from schema
Author: Ivan Pedruzzi
Date: 28 Nov 2011 03:36 PM
Originally Posted: 28 Nov 2011 03:18 PM
Hi Ron,

I tried to replicate the problem with the two documents attached, without success.

Are you running version X14?

It will be useful to have a full test case.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team


Documentschema-doc.zip

Postnext
Ron HyltonSubject: namespace problem on XML generated from schema
Author: Ron Hylton
Date: 28 Nov 2011 09:20 PM
Ivan,

I am using X14.

Is there an email address where I can send the example? I'm not sure how private uploads are.

Thanks,
Ron

Postnext
Ron HyltonSubject: namespace problem on XML generated from schema
Author: Ron Hylton
Date: 28 Nov 2011 09:21 PM
Ivan,

I am using X14.

Is there an email address where I can send the example? I'm not sure how private uploads are.

Thanks,
Ron

Postnext
Ron HyltonSubject: namespace problem on XML generated from schema
Author: Ron Hylton
Date: 28 Nov 2011 09:37 PM
Ivan,

I'll upload a simpler schema that has the same problem, and also a screeshot that shows insertion of an element with an invalid prefix from the tree view.

Ron


DocumentCVAResult.xsd
schema

Documentnsscreen.docx
screenshot

Postnext
Ivan PedruzziSubject: namespace problem on XML generated from schema
Author: Ivan Pedruzzi
Date: 29 Nov 2011 05:09 PM
Hi Ron,

Thank you for the test case!

This is a defect that has always existed in Stylus Studio. It happens when a schema defines a reference and form default is set to qualified.

I added the description to the database it will be fixed in the next release.

Notice that the Text View auto-complete is not affected by this.


Thank you
Ivan Pedruzzi
Stylus Studio Team

Posttop
Ivan PedruzziSubject: namespace problem on XML generated from schema
Author: Ivan Pedruzzi
Date: 06 Jan 2012 07:46 AM

Hi Ron,

Thank you very much for the test case, we have identified the problem and fixed it, you can find the X14 maintenance release build 1814a at

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

Ivan Pedruzzi
Stylus Studio Team

   
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.