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: Rendering clarification sought


The following snippet is taken from styles.xml of one of the famous Maja
wedding files:

<number:currency-style style:name="N104"><style:text-properties fo:color="#ff0000"/>
<number:text>-</number:text>
<number:currency-symbol number:language="en" number:country="US">$</number:currency-symbol>
<number:number number:decimal-places="2" number:min-integer-digits="1" number:grouping="true"/>
<style:map style:condition="value()&gt;=0" style:apply-style-name="N104P0"/>
</number:currency-style>

It's clear to me that if the current value is larger than or equal to
zero, the style:map applies and so style "N104P0" should be used.

Of interest is what happens for negative values. Suppose the value is
-1000 and we are in C locale. Then

<number:number number:decimal-places="2" number:min-integer-digits="1" number:grouping="true"/>

should translate into:                               -1,000.00
adding the currency symbol would yield:             $-1,000.00 
and with the number:text we get:                   -$-1,000.00

Is this the correct interpretation of the standard?

I gather there is really an attempt made to move the minus sign ahead of
the currency symbol, of course that would only work if 
<number:number number:decimal-places="2" number:min-integer-digits="1" number:grouping="true"/>
suppresses the minus sign, but I can't see any evidence of that in the
standard.

Thanks

Andreas
-- 
Andreas J. Guelzow
Concordia University College of Alberta



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