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
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

 
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.