[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [office] Office-3759 -
Hi Patrick, Patrick Durusau schrieb am 20.03.2022 um 22:53:
Greetings! Not entirely sure I got the part 3 part of this issue correct. For the schema I wrote: <rng:optional> ÂÂÂÂÂÂÂÂÂ <rng:attribute name="office:error"> ÂÂÂÂÂÂÂÂÂÂÂ <rng:ref name="string"/> ÂÂÂÂÂÂÂÂÂ </rng:attribute> ÂÂÂÂÂÂÂ </rng:optional>reasoning that however "errors" are treated by applications, they can only be stored as strings.Yes?
LibreOffice uses this structure in the schema: <rng:define name="common-value-and-type-attlist"> <rng:choice> <rng:group> ... </rng:group> ... <rng:group> <rng:attribute name="office:value-type"> <rng:choice> <rng:value>string</rng:value> <rng:value>error</rng:value> </rng:choice> </rng:attribute> <rng:optional> <rng:attribute name="office:string-value"> <rng:ref name="string"/> </rng:attribute> </rng:optional> </rng:group> </rng:choice> </rng:define> I think, that could be divided into two groups: <rng:define name="common-value-and-type-attlist"> <rng:choice> <rng:group> ... </rng:group> ... <rng:group> <rng:attribute name="office:value-type"> <rng:value>error</rng:value> </rng:attribute> <rng:optional> <rng:attribute name="office:string-value"> <rng:ref name="string"/> </rng:attribute> </rng:optional> </rng:group> <rng:group> <rng:attribute name="office:value-type"> <rng:value>string</rng:value> </rng:attribute> <rng:optional> <rng:attribute name="office:string-value"> <rng:ref name="string"/> </rng:attribute> </rng:optional> </rng:group> </rng:choice> </rng:define>So there is no attribute "office:error" but "error" is a value of attribute "office:value-type".
Kind regards Regina
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]