OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only
  • 1.  Default Values Proposal

    Posted 07-11-2008 09:08
    Dear TC members,
    
    as discussed recently, I have created an XSLT style sheet that moves all
    attribute default value definitions from the schema into some prose in
    the specification. The result is the following document:
    
    http://www.oasis-open.org/apps/org/workgroup/office/download.php/28794/OpenDocument-v1.2-draft7-4-default-values.odt
    
    I have further created a version of this document where attribute and
    element cross references have been generated:
    
    http://www.oasis-open.org/apps/org/workgroup/office/download.php/28795/OpenDocument-v1.2-draft7-4-default-values-xref.odt
    
    You can find the changes by looking for a yellow background color in
    chapter 18.
    
    Some notes:
    
    - I have noticed that in some cases attributes have a default value only
    for some elements while they have no default values for other elements.
    There are also a few cases where different default values exist for an
    attribute. For this reason, I had to adapt the language of the text that
    is added to the specifications. More details can be found in the Wiki:
    http://wiki.oasis-open.org/office/proposal%3Adefault-values
    
    - The current text that is added has been suggested by Patrick. Patrick
    has also suggested to add the explanatory paragraph at the start of
    chapter 18, which makes the text for attribute definitions themselves
    more readable.
    
    - I have created text based on the "attribute-[name]" anchors that
    Patrick has added to the specification. That is, I'm quite sure that I
    have covered all attributes. However, to make sure that nothing got lost 
    I intend to write another XSLT style sheet that takes the schema as 
    basis and checks whether all attribute default value definition that 
    occur in the schema also occur in the specification.
    
    Best regards
    
    Michael
    
    -- 
    Michael Brauer, Technical Architect Software Engineering
    StarOffice/OpenOffice.org
    Sun Microsystems GmbH             Nagelsweg 55
    D-20097 Hamburg, Germany          michael.brauer@sun.com
    http://sun.com/staroffice         +49 40 23646 500
    http://blogs.sun.com/GullFOSS
    
    Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
    	   D-85551 Kirchheim-Heimstetten
    Amtsgericht Muenchen: HRB 161028
    Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
    Vorsitzender des Aufsichtsrates: Martin Haering
    
    
    


  • 2.  Re: [office] Default Values Proposal

    Posted 07-11-2008 09:19
    2008/7/11 Michael Brauer - Sun Germany - ham02 - Hamburg
    


  • 3.  Re: [office] Default Values Proposal

    Posted 07-11-2008 09:42
    Dave,
    
    Dave Pawson wrote:
    > 2008/7/11 Michael Brauer - Sun Germany - ham02 - Hamburg
    > 


  • 4.  Re: [office] Default Values Proposal

    Posted 07-23-2008 12:45
    Hi Rob, all,
    
    I would like to discuss this proposal in the next call. We had already 
    agreed that we want to move default value definitions from the schema 
    into the specification, so what's needed is only a short review of the 
    language that I have chosen. If the language is okay, we may accept the 
    proposal in the next-but-one call, and I may apply the stylesheet to the 
    next draft that gets available, so that the default values get part of it.
    
    Michael
    
    Michael Brauer - Sun Germany - ham02 - Hamburg wrote:
    > Dear TC members,
    > 
    > as discussed recently, I have created an XSLT style sheet that moves all
    > attribute default value definitions from the schema into some prose in
    > the specification. The result is the following document:
    > 
    > http://www.oasis-open.org/apps/org/workgroup/office/download.php/28794/OpenDocument-v1.2-draft7-4-default-values.odt 
    > 
    > 
    > I have further created a version of this document where attribute and
    > element cross references have been generated:
    > 
    > http://www.oasis-open.org/apps/org/workgroup/office/download.php/28795/OpenDocument-v1.2-draft7-4-default-values-xref.odt 
    > 
    > 
    > You can find the changes by looking for a yellow background color in
    > chapter 18.
    > 
    > Some notes:
    > 
    > - I have noticed that in some cases attributes have a default value only
    > for some elements while they have no default values for other elements.
    > There are also a few cases where different default values exist for an
    > attribute. For this reason, I had to adapt the language of the text that
    > is added to the specifications. More details can be found in the Wiki:
    > http://wiki.oasis-open.org/office/proposal%3Adefault-values
    > 
    > - The current text that is added has been suggested by Patrick. Patrick
    > has also suggested to add the explanatory paragraph at the start of
    > chapter 18, which makes the text for attribute definitions themselves
    > more readable.
    > 
    > - I have created text based on the "attribute-[name]" anchors that
    > Patrick has added to the specification. That is, I'm quite sure that I
    > have covered all attributes. However, to make sure that nothing got lost 
    > I intend to write another XSLT style sheet that takes the schema as 
    > basis and checks whether all attribute default value definition that 
    > occur in the schema also occur in the specification.
    > 
    > Best regards
    > 
    > Michael
    > 
    
    
    -- 
    Michael Brauer, Technical Architect Software Engineering
    StarOffice/OpenOffice.org
    Sun Microsystems GmbH             Nagelsweg 55
    D-20097 Hamburg, Germany          michael.brauer@sun.com
    http://sun.com/staroffice         +49 40 23646 500
    http://blogs.sun.com/GullFOSS
    
    Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1,
    	   D-85551 Kirchheim-Heimstetten
    Amtsgericht Muenchen: HRB 161028
    Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
    Vorsitzender des Aufsichtsrates: Martin Haering
    


  • 5.  Re: [office] Default Values Proposal

    Posted 07-23-2008 13:17
    2008/7/23 Michael Brauer - Sun Germany - ham02 - Hamburg
    


  • 6.  Re: [office] Default Values Proposal

    Posted 07-23-2008 13:38
    Hi Dave,
    
    that is interesting. But having a quick rough at ISO/IEC 19757-8, then 
    DSRL is about mapping XML instances from on schema to another, and the 
    dsrl:default-value element is about adding default values as part of 
    this mapping.
    
    So, I may be wrong, but is seems to me that this definition of default 
    values has a different purpose, and cannot be used within the definition 
    of an RNG schema, or used to extend an RNG schema. Well, one maybe could 
    define an identity mapping which just adds default values, but this 
    would mean that all ODF applications would require DSDL support. I'm not 
    sure if this is reasonable. ISO/IEC 19757-8 is furthermore not yet 
    approved, but the ballot is still ongoing. So right now, we could not 
    normatively reference it.
    
    Anyway, thanks a lot for the interesting information.
    
    Michael
    
    Dave Pawson wrote:
    > 2008/7/23 Michael Brauer - Sun Germany - ham02 - Hamburg
    >