W3C home > Mailing lists > Public > www-style@w3.org > June 2014

[css-gcpm] content() function doesn't allow formatting of values

From: Jirka Kosek <jirka@kosek.cz>
Date: Thu, 12 Jun 2014 20:24:24 +0200
Message-ID: <5399F058.2070600@kosek.cz>
To: W3C Style <www-style@w3.org>

suppose simple use-case. There is date of the last modification stored
in a <meta> element using Dublin Core:

<meta name="DCTERMS.modified" content="2001-07-18">

and I want to put this date into the footer but formatted using Czech
locale. There is currently no provision for this.

One way to solve this is to provide additional function called xpath()
that will accept any XPath 2.0 expression and which could be used in a
content property and in places where content() function can be used.
XPath 2.0 already provides date, time and number formatting functions
and operates on document tree. So there will be no need to reinvent
everything from the scratch.

I mean this seriously. If CSS is supposed to fill space where currently
XSL is used more advanced data transformation prior rendering are needed.

Please note that there are already implementations supporting this, for




  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
    Bringing you XML Prague conference    http://xmlprague.cz

Received on Thursday, 12 June 2014 18:24:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:43 UTC