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)
- Website Feedback (249)
-> - Pasar Stylus Studio a otra PC (1)
-> + 'Find' functionality - annoyin... (2)
-> - Pinterest contact info (1)
-> - Chrome seems to post duplicate... (1)
-> - SSDN was under attack (1)
-> + Add SS to Wikipedia comparison... (2)
-> - can't uninstall StylusStudio (1)
-> - cannot get evaluation key (1)
-> + difficult (7)
-> - difficult (1)
-> - License Authentication Failed. (1)
-> + Msg for SSDN Admin (2)
-> - Where is there a Changelog for... (1)
-> - Stylus Studio amount of dedica... (1)
-> + Problems with Evaluation Key (3)
-> + AUP Upgrade to the Studio 2011... (2)
-> + Forum thread list: Add name to... (2)
-> + OSs Supported by Current Versi... (2)
-> + not able to email to stylusstu... (6)
-> + HTML to XSLT (2)
-> - Validate XML (1)
-> + Order of website search result... (2)
-> + ver 2010 download size (3)
-> + A system error occured while s... (2)
-> - email digest URLs (1)
-> + Questions on Licensing per use... (2)
-> + Unable to download Stylus Stud... (5)
-> + Contace Email Not Working (2)
-> + Phone Number (3)
-> + Can't find a form on the site ... (2)
-> + XSLT WYSIWYG (3)
-> - What powers this board? (1)
-> - Flash Demo on your site needs ... (1)
-> + error on opening Stylus Studio (6)
-> + Disappearing message contents ... (3)
-> - Inconsistent usage of quotes i... (5)
-> ->Inconsistent usage of quo...
-> ->Inconsistent usage of quo...
-> ->Inconsistent usage of quo...
-> ->Inconsistent usage of quo...
-> + Updates . Build version (web p... (4)
-> + ide.chm file (2)
-> + XmlDex list (2)
-> - Search options? (1)
-> + Endless loop in upload of atta... (7)
-> + http://www.stylusstudio.com/co... (3)
-> - From AOL/Google Sponsored Link... (1)
-> + Evaluation key not sent to my ... (2)
-> + New to this|| MySQL (3)
-> + trialware problem (2)
-> + Page Missing Link (2)
-> + email gateway only one way now... (3)
-> + XSLT Stylesheet Editor (2)
-> + Registering Stylus Studio (2)
-> + New to all this! (3)
-> + DTD Parser page - under constr... (2)
-> + fop component (2)
-> + Problem in converting XML Sche... (2)
-> + Problems with the java binding... (3)
-> + Questions/suggestions about th... (3)
-> + XML RECORD (2)
-> + SSDN Performance (2)
-> + X12 to XML (837) (7)
-> + Please describe summary of enh... (2)
-> + trailware problems (6)
-> + Typo in File upload window (2)
-> + Video plays too quickly (4)
-> + Privacy policy violated (3)
-> - Developer Network User Info di... (1)
-> + email postings to 'stylus-stud... (2)
-> + Possible to URL decode content... (4)
-> + What email address do I send p... (2)
-> + Error When Attempting to (2)
-> + Editing posts & a suggestion. (3)
-> - July Newsletter: The Stylus St... (1)
-> + Document Wizards: dtd to xml ... (2)
-> + Help documents not helpful (3)
-> - New Stylus Scoop Newsletter (1)
-> + How do I unsubscribe from your... (3)
-> - SSDN is now faster (1)
-> + Topic is truncated when doing ... (2)
-> + Posting on your conference boa... (2)
-> - What a scoop!! February Newsle... (1)
-> - Auto log out is VERY frustrati... (1)
-> - Focus on XQuery - Stylus Scoop... (1)
-> + Probs on competitive upgrade p... (2)
-> - December Newsletter - Focus on... (1)
-> + both pointers for xquery tutor... (4)
-> - Product Review: Stylus Studio ... (1)
-> - Thread deletion (1)
-> + Evaluation download (5)
-> - New Stylus Studio Ad - Solving... (1)
-> - October Stylus Studio Newslett... (1)
-> - New Parent treenode - most vie... (1)
-> + thanks for extra work (2)
-> + navigation javascript issues (4)
-> - The Stylus Scoop September Iss... (1)
-> + View thread by user (2)
-> + Folder marked as read (2)
-> - XML technology talk with Dr. M... (1)
-> + Set a thread flag to "review" (4)
-> - Stylus Studio Website now in B... (1)
-> + American date time format (4)
-> + Topics and their Date time sta... (2)
-> + Your website - great (2)
-> + Stylus Studio T-Shirts Have Be... (2)
-> - Links now working in SSDN XML ... (1)
-> + post text box way to narrow (3)
-- [1-20] [21-40] [41-60] Next
+ 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
Jesus PeraitaSubject: Inconsistent usage of quotes in xsd editor
Author: Jesus Peraita
Date: 02 Oct 2007 11:21 AM
Dear all,

The schema editor has a peculiar way of handling quotes.

Given this (Stylus Studio-generated) fragment:
...
<xsd:element name='record'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref='id'/>
<xsd:element ref='changed'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
...

If I change the cardinality of 'id' to minOccurs='0', I get the following:
...
<xsd:element name='record'>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="id" minOccurs="0"/>
<xsd:element ref='changed'/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
...

So, Studio uses single quotes when generating the initial xsd file but changes to double quotes when this xsd is somehow modified.

Am I missing something?
Is there a way to stick to just one kind of quotes?

Thanks a lot for your help.

Regards,

Jesus

Postnext
Ivan PedruzziSubject: Inconsistent usage of quotes in xsd editor
Author: Ivan Pedruzzi
Date: 02 Oct 2007 11:26 AM

In which way having two styles of quotes create troubles except the aesthetic?

Thanks!
Ivan Pedruzzi
Stylus Studio Team

Postnext
Jesus PeraitaSubject: Inconsistent usage of quotes in xsd editor
Author: Jesus Peraita
Date: 02 Oct 2007 11:39 AM
Hi Ivan!

Do you mean that this feature has been added on purpose in order to make Stylus Studio-generated code look untidy or sloppy? :-)

Indents are nicely handled though...

Kind regards,

Jesus

Postnext
Minollo I.Subject: Inconsistent usage of quotes in xsd editor
Author: Minollo I.
Date: 02 Oct 2007 01:07 PM
Usually XML documents and XML Schemas are meant for consumption by software applications rather than by human beings; software applications don't distinguish between single and double quotes usage, as the grammar allows both. As usually readability of the documents is not affected by the use of quotes, development/debugging by humans is usually not negatively impacted either.

Indentation is slightly different; it does indeed change the underlying representation of the XML document (in fact, in some cases software applications do complain on indented files, having to deal with text nodes that might be unexpected), but it helps enourmously during development and debugging by humans.

Anyway, thanks for the feedback, we'll surely keep it under consideration.

Posttop
Jesus PeraitaSubject: Inconsistent usage of quotes in xsd editor
Author: Jesus Peraita
Date: 02 Oct 2007 01:26 PM
Originally Posted: 02 Oct 2007 01:27 PM
Thanks for your reply.

You're right. Once the schema goes into production, it will consumed only by machines. But first it must go through several cycles of peer-reviewing, analysing, refining, etc.

Here, humans (developers) will literally turn the whole thing inside out, and use tools like Stylus Studio and xmlSpy to look at the xsd code. That's the stage at which an unconsistent usage of quotes worries me. Not because it will impact the actual usage of the xsd, but because my colleagues might not get a good image of my coding style.

Again thanks for your comment.

Regards,

Jesus

   
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.