O'Reilly logo

Platinum Edition Using XHTML™, XML, and Java™ 2 by Andrew H. Watt, Mike Morgan, Jim O'Donnell, Eric Ladd

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Namespaces in XML

Before moving on to look at some XSLT examples, take a look at the Namespaces in XML that underlie the naming of elements such as <xsl:import> mentioned earlier.

Some people find the concept of namespaces intimidating. Yet, at heart, the concept is very simple. Imagine you walked into a room where John Smith, John Jones, and John Black were all present. You couldn't distinguish one John from another by means of their first name but when you take account of their "surname space," distinguishing one John from another is straightforward.

XML namespaces were created to solve a similar problem. Each XML element or attribute has a qualifier that helps to identify it more precisely. In the amaxing.xsl style sheet in Chapter 10, you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required