OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

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


Subject: [OASIS Issue Tracker] (OFFICE-3860) Extend specification of number of decimal digits in number formatting


    [ https://issues.oasis-open.org/browse/OFFICE-3860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60235#comment-60235 ] 

Michael Stahl commented on OFFICE-3860:
---------------------------------------

have updated Proposal with Regina's suggestion.

re (1): yes, this is obviously the case.

re (2): i agree this is possible,  and all the existing
  <interleave>...only-attributes-here...</interleave>
 in the specification are actually unnecessary.

http://relaxng.org/spec-20011203.html#full-syntax

how does it work?

we start with

<define name="foo-elem">
    <element name="foo">
       <ref name="bar-attr/>
    </element>
</define>

<define name="foo-attr">
    <optional><attribute name="bar"/></optional>
    <optional><attribute name="baz"/></optional>
</define>

apply "4.8. name attribute of element and attribute elements"

<define name="foo-elem">
    <element>
        <name>foo</name>
        <ref name="bar-attr/>
    </element>
</define>

<define name="foo-attr">
    <optional><attribute><name>bar</name></attribute></optional>
    <optional><attribute><name>baz</name></attribute></optional>
</define>

apply "4.12. Number of child elements"

<define name="foo-elem">
    <element>
        <name>foo</name>
        <ref name="bar-attr/>
    </element>
</define>

<define name="foo-attr">
    <group>
        <optional><attribute><name>bar</name><text/></attribute></optional>
        <optional><attribute><name>baz</name><text/></attribute></optional>
    </group>
</define>

apply "4.14. optional element"

<define name="foo-elem">
    <element>
        <name>foo</name>
        <ref name="bar-attr/>
    </element>
</define>

<define name="foo-attr">
    <group>
        <choice>
            <attribute><name>bar</name><text/></attribute>
            <empty/>
        </choice>
        <choice>
            <attribute><name>baz</name><text/></attribute>
            <empty/>
        </choice>
    </group>
</define>

apply "4.19. define and ref elements"

<define name="foo-elem">
    <element>
        <name>foo</name>
        <group>
            <choice>
                <attribute><name>bar</name><text/></attribute>
                <empty/>
            </choice>
            <choice>
                <attribute><name>baz</name><text/></attribute>
                <empty/>
            </choice>
        </group>
    </element>
</define>

now looking at the inference rules (6.2.6. interleave pattern, 6.2.2. group pattern), there is no difference between <group> and <interleave> if they contain only attributes; these only differ when there is more than one possible interleaving of <element> or <text> below them. 

sorry for the lengthy comment but at least i understand RelaxNG a little better now...

> Extend specification of number of decimal digits in number formatting
> ---------------------------------------------------------------------
>
>                 Key: OFFICE-3860
>                 URL: https://issues.oasis-open.org/browse/OFFICE-3860
>             Project: OASIS Open Document Format for Office Applications (OpenDocument) TC
>          Issue Type: New Feature
>          Components: Formatting Properties
>    Affects Versions: ODF 1.2
>            Reporter: Andreas Guelzow 
>            Assignee: Andreas Guelzow 
>            Priority: Minor
>             Fix For: ODF 1.3
>
>
> This relates to the comment received in https://lists.oasis-open.org/archives/office-comment/201407/msg00008.html
> Currently the number:number element use a single attribute number:decimal-places to specify the number of decimal digits to be used. This means that formats such as "0.00#" (specified here using the Excel number format syntax) cannot be translated into ODF without the use of conditional formatting.
> I would propose to add an attribute to allow for formats of this type. 



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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