Day 14. Handling XLinks, XPointers, and XForms

Today you're going to take a look at three more XML applications: XLinks, XPointers, and XForms. In HTML, you can use hyperlinks to link documents, but in XML, you have more options, which is what the XLink and XPointer specifications are all about. XForms are designed to replace the standard forms you see in Web pages, which display buttons, text fields, and so on; XForms is designed to bring that kind of functionality into the XML world.

Here's an overview of today's topics:

  • XLinks
  • XBase
  • XLink attributes
  • Using xlink:href
  • Extended links and arcs
  • XPointers
  • XPointer node tests
  • XPointer predicates
  • XForms
  • Separation of data and presentations in XForms
  • XForms types
  • XForms controls

Today's discussion focuses on concepts taken over from HTML into XML (and often XHTML) by the W3C. You use XLinks to create hyperlinks in XML and XPointers to get even more specific than that: XPointers can build on XPath expressions, allowing you to point at a specific node or node set. XForms brings the idea of Web controls—such as buttons, text fields, and list boxes—to XML. Although XLink, XPointer, and XForms are all accepted W3c specifications, the actual implementation of each is spotty. More software is coming, but it's not here yet. Today, you'll see what you can do with the available software, with some good examples, such as the XSmiles XML browser, which supports XForms.

Share ThisShare This