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

On 13.6.2014 18:35, Tab Atkins Jr. wrote:
> But it's troublesome here.  We could maybe go meta and have a function
> for retrieving document metadata specifically; some type of non-local
> attr() for example.  But that would require some thinking.

I think that developing something special for meta elements doesn't make
sense. You can have similar info stored in microdata markup or something
else, so generic approach for pulling content from arbitrary element or
attribute should be available.

>> I think that respecing what is already done in XPath is regarding dates
>> is lost time.
> 
> Browsers don't implement XPath 2.  Even if they did, bodging a second
> query language into CSS just for a single use-case would be a
> *terrible* thing to do to authors, especially when the query-language
> part is actually completely irrelevant, and it's just the handful of
> formatting functions that they actually want.
> 
> Note that I'm suggesting we use *another* existing standard, the ES
> Localization/Internalization API, to inform our API design and provide
> definitions of parsing/serialization; I'm not suggesting we invent our
> own independent system.

ES I18N API uses object for passing parameters which will make it very
hard to combine this with CSS syntax. XPath date function use just strings.

     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 Monday, 16 June 2014 14:20:43 UTC