|
Home > Online Product Documentation > Table of Contents > Working with Namespaces Working with NamespacesWhen the XML document declares one or more namespaces, those namespaces are displayed in the namespace pane, as shown here:
In addition to the namespace URI, Stylus Studio displays the namespace prefix declared in the XML document, if any, and a prefix that is used when creating XPath query expressions. If one namespace prefix clashes with another in the XML document, Stylus Studio renames the second prefix by adding a number to the end of the original prefix name to make it unique - for example, if two namespaces have the prefix bks, the second is renamed bks1. Similarly, if no namespace prefix has been declared, Stylus Studio creates a default namespace prefix, ns1. Namespace declarations in the XML document are not changed. Namespace prefixes defined for the query Changes saved to the XML document are reflected in the namespace pane when you click on the namespace pane or query pane. Viewing/Changing Namespace PrefixesYou must use the value in the Query for Prefix field when writing XPath query expressions; you can specify your own prefix if want to use one other than the one provided by Stylus Studio. To change a namespace prefix:
1. Click the
Show Namespaces button (
The namespace pane shows any namespaces that have been defined for the current XML document, as well their associated namespace prefixes, if any.
2. Optionally, change the value in the
Prefix for Query field.
|
Airlines, Aerospace and Defense
Want to know what airlines, aerospace and defense companies are soaring high with Stylus Studio 2006? Well now you can! Come check out these leading companies and soar with Stylus Studio 2006 yourself.
Using DTD in Java Applications
Learn how to validate XML documents using industry-standard DTD's from within your Java applications using Java DTD components including Apache Xerces and XSV.
XML Document Wizards
Stylus Studio XML Document Wizards help you easily convert EDI, flat files, and other document formats to industry-standard XML.
FLWOR - An Introduction to the XQuery FLWOR Expression
An XQuery FLWOR Tutorial, covering an introduction to the main constructs of the XQuery FLWOR expression, including: For, Let, Where, Order By, and Return. Written by the W3C's Dr. Michael Kay.