[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: XSLT 3.0 Relax NG Schema

  • From: George Cristian Bina <george@oxygenxml.com>
  • To: mozer <xmlizer@gmail.com>
  • Date: Tue, 25 Jun 2013 00:36:36 +0300

Re:  Re: XSLT 3.0 Relax NG Schema
Just a comment on Relax NG and default values:

On 6/24/13 6:56 PM, mozer wrote:
>> >
>> >(2) - In W3C's working draft some attributes have a default value, e.g.,
>> >attribute "decimal-separator" of element "decimal-format" has default value
>> >".".
>> >Your schema does not contain any default values, is that for a reason?
> Well, first reason is that Relax NG doesn't support default values.
> But there is a specific extension that could deal with that.

Relax NG itself does not define anything for default values indeed. 
However, the Relax NG DTD compatibility specification defines an 
annotation that can be used to specify a default value, see
http://relaxng.org/compatibility-20011203.html#default-value

I implemented this support on top of Jing in the DITA-NG project
http://code.google.com/p/dita-ng/
This implements DITA in Relax NG and DITA relies at its core on default 
values for the class and domains attributes, so this was a very 
important requirement to be able to use Relax NG for DITA.

In any case, if the specification talks about default values then you 
may consider adding them though an a:defaultValue annotation and leave 
the tools to support that if they want to.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.