[ 
https://issues.apache.org/jira/browse/ODFTOOLKIT-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13460152#comment-13460152
 ] 

DaLi Liu commented on ODFTOOLKIT-132:
-------------------------------------

Verified status of this issue
2.not sure - I am not sure about this issue, maybe still need to be opened
                
> <table:table-cell> should not be able to use @office:value-type with "void" 
> value
> ---------------------------------------------------------------------------------
>
>                 Key: ODFTOOLKIT-132
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-132
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 0.8.5
>         Environment: Operating System: All
> Platform: All
>            Reporter: Svante Schubert
>            Assignee: Svante Schubert
>             Fix For: 0.8.7
>
>
> Void is a possible value for @office:value-type but for a different element 
> not for <table:table-cell>. Source code generation should reflect this.
> See OpenDocument-v1.2-cd05-schema.rng:
> <define name="form-property-value-and-type-attlist" combine="interleave">
>     <choice>
>         <ref name="common-value-and-type-attlist"/>
>         <attribute name="office:value-type">
>             <value>void</value>
>         </attribute>
>     </choice>
> </define>
> See
> <define name="table-table-cell-attlist">
>       <interleave>
>               <optional>
>                       <attribute name="table:number-columns-repeated">
>                               <ref name="positiveInteger"/>
>                       </attribute>
>               </optional>
>               <optional>
>                       <attribute name="table:style-name">
>                               <ref name="styleNameRef"/>
>                       </attribute>
>               </optional>
>               <optional>
>                       <attribute name="table:content-validation-name">
>                               <ref name="string"/>
>                       </attribute>
>               </optional>
>               <optional>
>                       <attribute name="table:formula">
>                               <ref name="string"/>
>                       </attribute>
>               </optional>
>               <optional>
>                       <ref name="common-value-and-type-attlist"/>
> ...
> <define name="common-value-and-type-attlist">
> <choice>
>       <group>
>               <attribute name="office:value-type">
>                       <value>float</value>
>               </attribute>
>               <attribute name="office:value">
>                       <ref name="double"/>
>               </attribute>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>percentage</value>
>               </attribute>
>               <attribute name="office:value">
>                       <ref name="double"/>
>               </attribute>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>currency</value>
>               </attribute>
>               <attribute name="office:value">
>                       <ref name="double"/>
>               </attribute>
>               <optional>
>                       <attribute name="office:currency">
>                               <ref name="string"/>
>                       </attribute>
>               </optional>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>date</value>
>               </attribute>
>               <attribute name="office:date-value">
>                       <ref name="dateOrDateTime"/>
>               </attribute>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>time</value>
>               </attribute>
>               <attribute name="office:time-value">
>                       <ref name="duration"/>
>               </attribute>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>boolean</value>
>               </attribute>
>               <attribute name="office:boolean-value">
>                       <ref name="boolean"/>
>               </attribute>
>       </group>
>       <group>
>               <attribute name="office:value-type">
>                       <value>string</value>
>               </attribute>
>               <optional>
>                       <attribute name="office:string-value">
>                               <ref name="string"/>
>                       </attribute>
>               </optional>
>       </group>
> </choice>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to