[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:

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

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

	(see, no #include or #use lines)

<table cellspacing="0" cellpadding="4" border="0">
&lt;page info title="Test"&gt;
&lt;fsview src="$(WML_SRC_FILENAME)"&gt;
&lt;import src="$(WML_SRC_FILENAME)"&gt;

	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?

Davor Cengija
"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