[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: BUG REPORT: Website META Language 1.7.4 (06-Oct-1999)
- From: Thomas Akin <nospam@thanx>
- Date: Thu, 4 Nov 1999 16:42:20 -0500
Denis,
On Tue, Nov 02, 1999 at 10:13:34AM +0100, Denis Barbier wrote:
> On Mon, 1 Nov 1999, Thomas Akin wrote:
>
> > PROBLEM DESCRIPTION:
> >
> > The std::toc include file uses pass 6 area substitutions internally
> > which break when you use a <protect pass=6> around the <toc> tag...
> [...]
>
> Hi Thomas,
>
> i will have a look on it, but here is a quick answer. The documentation
> reports that wml::std::toc requires passes 1, 2, 5 and 6. Any
> protection against one of these passes will break its effect.
But then we get have the the problem of using area
substitutions in templates that contain a TOC.
If I have a template "my.tmpl" that has
{:
[[s|(home.page)|<a href="my.home.net">$1</a>|igs]]
<<BODY>>
:}
and I have a wml file test.wml
#include wml::std::toc style=ol
#use "my.tmpl"
<divert BODY>
<toc>
<toc_h1>Do you have a home page?</toc_h1>
<br>
Yes! Follow this link to see my home page.
</divert BODY>
I get the output
<ol><li><a href="#ToC1"><strong>Do you have a
<a href="my.home.net">home page</a>?</strong></a>
</ol>
<a name="ToC1">Do you have a <a href="my.home.net">
home page</a>?</a>
<br>
Yes! Follow this link to see my <a href="my.home.net">
home page</a>.
And I have a nested href inside my TOC... Not
pretty...
The ability to put <protect pass=6> </protect>
around the <toc> tag would fix this problem....
Thanks,
Thomas
--
---------------------------------------------------------------
Thomas Akin Kennesaw State University
Networking Instructor Continuing Education
CNX, CSA, ICS 1000 Chastain Road
takin@kennesaw.edu Kennesaw, GA 30144-5591
---------------------------------------------------------------
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com