[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: not expanding $(SOMETHING) in <import> or <fsview>



On Wed, 7 Jul 1999, Denis Barbier wrote:

>On Tue, 6 Jul 1999, Davor Cengija wrote:
>
>> 	i'm trying to implement something like this:
>> 
>> <box header="$(WML_SRC_FILENAME)">
>> <import src="$(WML_SRC_FILENAME)">
>> </box>
>> 
>> 	but in the <import>'s output $(WML_SRC_FILENAME) is expanded
>> 	to the_realname.wml what i want to avoid.
>> 	
>> 	i guess that P3 (ePerl) expands those variables. the same
>> 	applies for #use and #include statements.
>> 
>> 	is there a workarround? maybe some explicit <perl> statements?
>
>Sorry Davor, i don't understand your request.
>Pass 1 expands $(WML_SRC_FILENAME) to the_realname.wml. Now what do you
>want to do exactly?
>
>
	sorry for the inconveniance, but i've made the mistake: i was
	writing about expanding $(VARIABLE) in the <import>'s and
	<fsview>'s output, but i was thinking on expanding #include
	and #use lines.

	here's the example:

the_realname.wml
----------------
#use wml::std::page
#use wml::std::box
#use wml::imp::all
<page info title="Test">
<fsview src="$(WML_SRC_FILENAME)">
<box>
<import src="$(WML_SRC_FILENAME)">
</box>

	so, three #use lines on the top of the file
	
the_realname.html
-----------------
[cut]
<table border="0" width="90%" cellpadding="10" cellspacing="0">
<tr>
<td align="left" bgcolor="#dfc0c0">
<a href="the_realname.wml"><font size="5">[ <b>FILE</b> ]</font>
</a>
&nbsp;&nbsp;&nbsp;
<font size="5" color="#404080"><b><tt>the_realname.wml</tt></b></font>
<br>
<font size="-1" color="#606090"><tt>
[-rw-rw-r-- davor davor]</tt></font>
</td>
</tr>
<tr>
<td bgcolor="#ffe0e0" align="left">
<pre>
&lt;page info title="Test"&gt;
&lt;fsview src="$(WML_SRC_FILENAME)"&gt;
&lt;box&gt;
&lt;import src="$(WML_SRC_FILENAME)"&gt;
&lt;/box&gt;
</pre>
</td>
</tr>
</table>

	(see, no #include or #use lines)

<table cellspacing="0" cellpadding="4" border="0">
<tr>
<td>
<pre>
&lt;page info title="Test"&gt;
&lt;fsview src="$(WML_SRC_FILENAME)"&gt;
&lt;box&gt;
&lt;import src="$(WML_SRC_FILENAME)"&gt;
&lt;/box&gt;</pre>
</td>
</tr>
</table>
</body>
</html>

	same thing here... it looks like the_realname.wml does not
	have any #include or #use statements and i'm trying to show
	which external files i've used to create that html document.

	so... how to force <import> or <fsview> to show #-starting
	lines as well as the other ones?

	thanks
-- 
      v
Davor Cengija
davor@linuxfan.com
===================================
"Please allow 30 days for delivery"
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com