Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ideas:content-formatting [2008/01/14 13:59] – Fuller example itpastornideas:content-formatting [2014/12/09 15:48] (current) – external edit 127.0.0.1
Line 51: Line 51:
  
 Should be displayed as ''1234 5678 9012 3456'' and spoken as ''12 34 56 78 90 12 34 56'' Should be displayed as ''1234 5678 9012 3456'' and spoken as ''12 34 56 78 90 12 34 56''
 +
  
 ==== New CSS rules ==== ==== New CSS rules ====
  
-**@decimal-format** that draws its ideas from xsl:decimal-format+=== @decimal-format === 
 + 
 +This rule draws its ideas from xsl:decimal-format
 + 
 +It is used to specify the same things as its XSL counterpart, e.g. grouping and decimal separators.
  
-**number-format**   that draws its ideas from xsl:number-format+=== number-format ===
  
 +This rule draws its ideas from xsl:number-format. It shall be used to format actual output.
  
 +It consists of two parts for its value. A string that is identical to the second argument in XSL number format, and an
 +optional reference to a decimal format, specified with an "at-rule" (see above).
  
 ==== Example CSS ==== ==== Example CSS ====
Line 122: Line 130:
     }     }
   }   }
 +
 +
 +==== Parsing ====
 +
 +When an UA sees that an element has a number format rule, it should try to convert that elements textcontent to a number.
 +
 +If such a conversion is not possible, the CSS rule should be ignored. This rules is **primarily** intended for table cells, short headings, simple inline elements such as span, some form elements and perhaps a new number element.
  
 ==== Remarks ==== ==== Remarks ====
 
ideas/content-formatting.1200347973.txt.gz · Last modified: 2014/12/09 15:48 (external edit)
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki