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

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