Now consider the following XML document: |
<book image=”xslt.gif”> |
<title>XSLT Programmers Reference</title> <author>Michael Kay</author> <year>2003</year> |
</book> |
The image attribute contains additional information that an application might use to display the book information with a picture. Because no one other than the software processing this document is likely to care about the image, and because the image is an adjunct to (rather than a part of) the book’s definition, image is properly cast as an attribute instead of an element. |