- From: Jirka Kosek <jirka@kosek.cz>
- Date: Thu, 12 Jun 2014 20:24:24 +0200
- To: W3C Style <www-style@w3.org>
- Message-ID: <5399F058.2070600@kosek.cz>
Hi, 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 example: http://www.oxygenxml.com/doc/ug-editor/concepts/dg-xpath-function.html http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/xpath.html Jirka -- ------------------------------------------------------------------ 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