CHAPTER 2 RELATED XML RECOMMENDATIONS XPath Summary
CHAPTER 2 RELATED XML RECOMMENDATIONS XPath Summary The following list summarizes the main points to consider when working with XPath expressions: You can use XPath in XSLT stylesheets and XPointers to specify a location in an XML tree. XPath expressions identify the location using an axis name, a node test, and, optionally, a predicate. The expressions read from left to right with each point in the path separated by a forward slash (/). You can abbreviate some XPath expressions to use a shortened form. You can include mathematical operators and functions within an XPath expression if you want to perform calculations during a transformation. You saw earlier that XPath expressions specify locations in XSLT stylesheets. These expressions can also be used in XPointers, which point to a specific location within an XLink. Before we see this, let s look at XLinks. Linking with XML XLinks provide a powerful alternative to traditional XHTML links. XHTML links allow you to link from a source to a destination point, in one direction. XLinks allow you to Create two-way links Create links between external documents Change the behavior of links so that they trigger when a page loads Specify how the linked content displays You can find out more about the W3C XLink recommendation at http://www.w3.org/TR/ 2001/REC-xlink-20010627/. The XPointer recommendation is split into the element (http:// www.w3.org/TR/2003/REC-xptr-element-20030325/), the framework (http://www.w3.org/TR/ 2003/REC-xptr-framework-20030325/), and the xmlns scheme (http://www.w3.org/TR/2003/ REC-xptr-xmlns-20030325/). At the time of writing, a fourth recommendation is in development the xpointer() scheme (http://www.w3.org/TR/2002/WD-xptr-xpointer-20021219/). This recommendation adds advanced functionality to XPointer, including the ability to address strings, points, and ranges within an XML document. Currently, XML tools offer very limited support for XLink and XPointer. However, the recommendations are important and their usage is likely to be extended in the future, so it s worthwhile having an understanding of how they fit into the XML framework. Let s start by looking at the two different types of XLink that you can create: simple and extended.
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision ecommerce web hosting services