Hi,
Respectfully, I'd like to suggest you guys are all giving Peter very useful
information, which is only likely to confuse him, despite (and even
exacerbated by) the occasional "aha"!
The solution to his problem is in mastering templates and the recursive
template-based processing model, operating over the tree (not the "tags",
as David warns). If he understands this, there are a million ways for him
to solve his problem (and one very simple, elegant and obvious way). If he
doesn't, he'll try all the other stuff (copy-of, value-of, etc etc) and
sometimes get what he wants but sometimes not -- never understanding why.
This is only more true of subsequent exercises in the assignment.
Peter, figure out what "apply-templates" does (what does this mean and what
is it applying templates to?) and everything else will fall into place.
This is the secret of handling mixed content (elements intermixed
arbitrarily with text).
Cheers,
Wendell
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================