spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column23

Dynamically generating HTML pages with XMLC

Information Technology Auditor (PA)
Next Step Systems
US-PA-Wayne

Justtechjobs.com Post A Job | Post A Resume
Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

The XMLC Development Process

XMLC is designed to support a process where:
  1. The graphics designer does the upfront work with the customer, designing a mockup site with static HTML.
  2. The initial mockup of the the site is handed off to the programmer (i.e. checked into the source tree), who goes about developing the dynamic presentation logic.
  3. The graphics designer continues to refine the look and feel of the site and checks the modified site into the source tree.
  4. Both parties can continue to work in parallel, as long as the interface between them, defined by standard id and class attributes in the HTML, remains unchanged, as described below.

Defining Dynamic Components of HTML Pages

Two mechanisms, both part of the HTML 4.0 specification, are used to identify elements (tags) for the creation of dynamic content. The id attribute, valid on most elements, is a document-unique identifier of a particular element. Elements may be grouped using the the class attribute. The class name can then be used to find multiple elements on which to perform an operation. A given element may belong to multiple classes by giving multiple class attributes. While both of these attributes are defined in HTML 4.0, most HTML software ignores attributes that are not understood and their use does not cause problems. Examples of these attributes are:

 <input type="text" name="username" id="username">

    <tr class="deleteRow">

These identifiers serve as the formal interface between the designer of a document and the programmer writing code to generate dynamic content from that page. When the designer and programmer carefully work out these identifiers, both may proceed with full development in parallel.

The use of these id and class attributes does not conflict with other uses, such as access by JavaScript or linking to a Cascading Style Sheet (CSS). All an id does it give that element a unique name, it does not define the usage, the same id can be accessed from JavaScript, CSS, and with XMLC-generated objects. The class attribute is a white-space separated list of names, so it possible for an element to belong to more than one class.

Identifying Elements for Modification

The main reasons for giving elements unique identifiers using the id attribute are: When one wants to modify text embedded in a block of text, the HTML 4.0 <span> tag with an id attribute may be used to access a portion of text within a larger text block.

Element Grouping

Some of the useful reasons for grouping multiple elements using the class attribute are:

Let's compile HTML pages.

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs

Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/column23/2.html
Created: Nov 05, 2000
Revised: Nov 05, 2000