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

Re: [selectors-nonelement] ::attr(*|localname), ::attr(ns|*), and ::attr(*)

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed, 26 Feb 2014 11:45:03 +0100
Message-ID: <530DC5AF.8080809@kosek.cz>
To: Simon Pieters <simonp@opera.com>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>, Simon Sapin <simon.sapin@exyr.org>, www-style <www-style@w3.org>
On 26.2.2014 11:20, Simon Pieters wrote:
> The latter is probably more interesting.

For example if you want to override default HTML5 rules for translatable
attributes
(http://www.w3.org/TR/html5/dom.html#translatable-attributes), it's
easiest to switch translatability of all attributes first by the
following rule:

<its:translateRule selector="::attr(*)" translate="no"/>

Then you can selectively enable translation of selected attributes only by:

<its:translateRule selector="::attr(title), ::attr(alt)" translate="yes"/>

				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 Wednesday, 26 February 2014 10:45:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC