[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
<protect> does not work
- From: Wolfgang Dautermann <nospam@thanx>
- Date: Sat, 12 Feb 2000 14:09:21 +0100 (CET)
Hi,
I want to create two pages from one input file - one html-only page
and one with php-scripts. A small example:
#use wml::std::lang
<lang:new id=html>
<lang:new id=php>
<lang:star:slice: %BASE.*>
<h1> Linux</h1>
<lang:html></lang:html>
<lang:php>
<H3>Linux Headlines</H3>
<P>
<protect>
<?php
readfile("http://lwn.net/headlines/html");
?>
</protect>
</lang:php>
Wml (1.7.4) should leave the php-code (everything between "<?php" and
"?>") untouched - therefore the <protect>-container.
But after pass 1 (!) the code looks like:
...
<lang:php>
<H3>Linux Headlines</H3>
<P>
-=P[000000]=-
</lang:php>
...
Why? I get the same result, if I write <protect pass=1-9> instead
<protect>. What can I do to protect php-code against wml?
Bye, Wolfgang
Strange - if I call wml using "wml -p 1 index.wml", the php-code passes
pass 1 correct (but the <protect>-tag vanishes), if I call it using
"wml -v 9 index.wml" and I look at the result after Pass1, I get the
code above.
(the sourcecode can be found at
http://ers.dhs.org/~wolfgang/wml-question/index.wml)
--
Diese Mail kommt von: Wolfgang Dautermann
WWW-Homepage: http://oeh.tu-graz.ac.at/~dauti/
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com