Name

xml:attribute

Synopsis

xml:attribute= existing-attribute replacement-attribute

Description

The xml:attribute attribute allows you to remap attributes to prevent conflict with other potential uses of XLink attributes. For example:

<person title="Reverend" title-abbr="Rev." 
  given="Kirby" family="Hensley" 
  href="http://www.ulc.org/"
  link-title="Universal Life Church"
  xml:attributes="title link-title"/>

In this example, since the title attribute is already taken, the xml:attributes attribute remaps it to use link-title instead.

See Section 1.5 for more information on attribute remapping. (Note that this attribute may change to xlink:attribute in the future.)

Get XML Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.