On Jun 1, 9:01 am, Wizzud <[EMAIL PROTECTED]> wrote:
> Untested...
>
> function expand_refs (context) {
>     $("xref",context||document).each(function (i) {
>       var rpl = defs[$(this).attr("ref")]||0;
>       if(rpl){
>         var cntxt = $(rpl).insertAfter(this);
>         $(this).remove();
>         expand_refs(cntxt);
>       }
>     });}
>
> expand_refs();

Yup.  That worked nicely after I'd fixed the funky backslashes in the
defs literal.

Cheers,
Andy

Reply via email to