]>

Internationalised colour lightener: Converts all colours found in a specified attribute of a specified match in the source document which are also found in the map specified by the lex option

A match pattern which identifies the elements to be changed

The attribute whose value is to be changed

A map keyed by colour names with values the corresponding lighter ones

{p:make-attribute($attr, $lex($ca))}

Maps dark colour names to lighter ones. Structure is like this:

      {"language" : "...",
       "colourMap" : { "[dark name]" : "[lighter name]",
                        ... }}
     

A new step which converts a json node to an XDM item (array, map or literal)

Assumes we get the XDM map from the json doc as the default readable port == context node for the select here