This is where namespaces come in to play, as they are available for you to define a custom namespace within your document and then reference its object separately. For example, you've created an XML document to which you want to apply XSLT, where one of the fields returned from the database is labeled "title". Because HTML already has the title tag reserved, you need to create your own namespace.
Take a look at the line of code
<xmlns:b=http://myMachine.com>
It allows you to prefix any XML element with "b:", and it won't interfere with any of the HTML reserved words.
The line <b:title> and <title> are now two different entities. The only hard and fast rule that you must be comply with here is to ensure that the namespace declaration occurs somewhere near the beginning of the document, before you declare any conflicting elements.
|