O'Reilly logo

Enhydra XMLC™ Java™ Presentation Development by David H. Young

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cloning and Templates

The nature of the dynamic manipulation of HTML ranges from straightforward, localized content replacement to the making of wholesale changes to the structure of the document. In this section, we will walk through strategies for using cloned portions of a DOM template to build new DOM structure and content.

Content Substitution

Template manipulation can take the form of simple replacement of placeholder or mockup content. Taking advantage of the role of the id attribute in XMLC programming turns this into a trivial task:

<HTML>
<BODY>
<P>Street Address: <SPAN id=vendorAddress>111 AAA Way</SPAN>.
</BODY>
</HTML>

In this simple HTML example, no additional markup is actually being created or reworked. Our intent is to simply ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required