Ilan Berci wrote:
> >
> > It's macro-type stuff. Basically I want to output
> > the *same* HTML except for the text that replaced
> > the special tags.
>
> This is what XSLT was designed for and it may provide another option for
> you..

That makes sense. I've never used XSLT, but I'm sure that's
a viable solution.

_Why's Hpricot example worked perfectly for me, BTW.

So, a related question.

Suppose I wanted to "nest" macros of this kind. Something like:

  <mac1 foo="1" bar="2>My name is
        <mac2 baz="3" bam="4">seed-value</mac2>
  today.</mac1>

Forgive the nonsense example.

Could XSLT handle this easily? Could Hpricot (_why)?


Thanks,
Hal