Profit from this richer content structure until browsers can handle the next generation of XHTML
The XHTML 2 specification is not yet complete, but it already has many advantages over XHTML 1, including richer structural features, which make XHTML 2 an editing format better able to serve as the central model for a single resource publishing system than its predecessor. . Perform large or small releases
Profit from this richer content structure before browsers can handle the next generation of XHTML
The XHTML 2 specification is not yet complete, but it already has many advantages over XHTML 1, including Including richer structural features, XHTML 2 as an editing format will serve as a better than its predecessor as the central model for a single resource publishing system. People running large or small releases can start using the new features of XHTML 2 now without having to wait for browsers to provide support for its new user interface features.
About a year ago, an industry standards group asked me to describe how XHTML2 might be useful to publishers. I didn't know if it would be practical, but they offered to cover the cost of going to New York, so I decided to look into it.
The research I did didn’t require a lot of effort. XHTML 2 adds a richer structure to XHTML, making it a format that can be used to create and store content, not just to deliver content to the browser. I'm exaggerating a bit when I say XHTML 2 is already useful; many shops have some very sensible policies for this unfinished standard, and XHTML 2 is still in the Working Draft stage (more info on , see Resources). Unlike almost all HTML-related standards, XHTML 2 is able to provide a lot of value before well-known browsers support it, because it is more likely to store content in a richer and more complex structure. Doesn't deviate too much from familiar HTML elements and attributes.
The Current State of XHTML: Where Are We Now
The W3C XHTML 1.0 standard creates an XML version of HTML. While browsers aren't overly particular about whether a Web page is well-formed XML, Web site designers who are tired of having to do one thing for Firefox and another for Microsoft™ Internet Explorer are seeing more changes in standards. Much value. Many open source CSS collections (such as Open Web Design and Open Source Web Design, see Resources for links to both) have their stylesheets using XHTML 1 sample files for demonstration purposes, and I've heard of some that are barely known to be well-formed Web designers are proud to claim that their sites are built with XHTML. As Internet Explorer and Firefox support more and more CSS features, these Web designers are adding more design techniques to CSS style sheets, leaving simpler and more straightforward (and easier to reuse) XHTML in the basic document .
XHTML 1.1 (see Resources) does not add new features, but it breaks XHTML into modules. Its value is reflected in two aspects. First, if we find that there is value in some modules but not in others, it can be easier to adopt a subset of it. For example, the Wireless Application Forum (WAP) has every reason to incorporate basic XHTML structures into its standards for delivering content to mobile phones, but it does not want to allow WAP documents to incorporate user interface features such as those used on mobile phones. The image mapping or editing module features are not very useful on the small screen.
Another benefit of a modular architecture for DTDs or schemas is that it can be easier to plug in new modules that are unique to a user's application. Combined with the ability to pick and choose existing modules, this capability brings benefits to the publishing industry: the PRISM standards group dedicated to publishing industry metadata selected a subset of XHTML 1.1 and then added some with industry-specific vocabulary new module to make it easier to track content through publishing workflows. (See Resources for more information about PRISM.)
You can compare developing XHTML 1.1 to cleaning out your basement: you probably won't have to throw away as much stuff, and by organizing it better, you'll be able to use it more easily Existing items can even free up space to build a workbench on which to make something new.
XHTML 1.1 has been a standard (or, in W3C parlance, a recommendation) since May 2001. The most recent development on XHTML 2.0 was the release of a new working draft in July 2006. Although it will have several stages to come to its final form, the availability of the RELAX NG schema (see Resources for a link) enables us to create and use XHTML 2 documents now so that we can quickly transition to the specification when it becomes a recommendation. to XHTML. A simple XSLT stylesheet will convert these files to XHTML 1 for display by the browser, or you can use a CSS stylesheet now included with the XHTML 2 Working Draft (see Resources) to display it in a browser (for now, Firefox should work better).
XHTML 2: What's new?
XHTML 2 retains the functionality of XHTML 1 to clean up existing syntax to make it more concise, while also adding some new features. It adds support for XForms, the more complete successor to forms that have been used in HTML for more than a decade. XHTML 2 also includes XML Events, which allow us to identify events triggered by certain user interface operations, thereby reducing the need to write scripts in JavaScript or ASP. These features will be interesting, especially once major browsers support them, but other features will be more interesting to publishers even before browsers support XHTML:
A richer, more reusable structure
Better device independence, easier access, and better semantics
Easier to add metadata
#p#
Richer Structure
Many publishers who need to store content in XML know that it is better to use an existing standard schema (by which I mean W3C Schema, RELAX NG Schema, or DTD) than to create one from scratch. They look at DocBook and find it too complex, they look at HTML or XHTML 1 and find it too simple. For many publishers, XHTML 2 is a good balance between the richness of DocBook and the simplicity of XHTML 1. This balance makes it an excellent format for storing content, regardless of whether the content needs to be converted into other formats for delivery in a variety of media.
Listing 1 contains a sample XHTML 1 file and shows its structure in indented format.
Listing 1. Structure of XHTML 1 file
Here is my Web page.
Here is section 1 my Web page.
Here is a subsection of my Web page.
Here is section 2 of my Web page.
Here is a subsection of my Web page.
Here is section 2 of my Web page.
The dream of Semantic Web is mainly to allow Web page data to be published as content for people to read, and as data for programmers to read, starting from the database, such as the dc:title example demonstrated in Listing 3 . The fb:workflowStage example demonstrates another advantage of RDFa: we can actually add arbitrary metadata to an XHTML 2 document specifically for your own store, which makes the document easier to track and reuse.
Start using XHTML 2 now
We still have to wait a while before we can use the newer user interface features in XHTML 2m, such as XML Events, but we can experiment with the new structural features in XHTML 2 now. As an unfinished specification, XHTML 2 is still a work in progress, but progress is slow. The schema and CSS stylesheet are currently available and we can try it out and consider what benefits it might bring to our operations. In fact, I wrote this article using it, Driving context-sensitive XML editing in XHTML 2's RELAX NG mode using Emacs in nXML mode (see Related topics). Before I submitted this article, I used a simple XSLT stylesheet to convert it into a format that conforms to the developerWorks DTD. By the time XHTML 2 becomes a standard recommendation, I plan to have it running at full speed.