Re: WML processing and filename truncating/stripping of generated output file

Rolf Sponsel <[email protected]> Tue, 21 Feb 2006 00:37:03 +0100
Newsgroups gmane.comp.web.wml
Message-ID <[email protected]>
Hi Axel!

Thank You for Your kind response. Your hints
have definitively increased the chances for
this my WML issue, bugging me for years, to
finally have some resources allocated by me. :-)

I will have a closer look at it as soon as time
allows, and report back my findings about the
behavior when running on a Solaris platform.

Kind Regards,
Rolf Sponsel

Axel Beckert, 2006-02-20 23:39 GMT +01:00, wrote:
> Hi Rolf!
> 
> On Sat, Feb 18, 2006 at 03:54:26PM +0100, Rolf Sponsel wrote:
>> I happy to see that the WML community
>> seems to be still going strong. Great!
> 
> Good programs never die, they just settle some dust on it. ;-)
> 
>> What I'd like to accomplish is to, in-
>> stead of adding those parser options
>> at the beginning of every file, have
>> every file ending in, e.g. wml, to be
>> automagically renamed to whatever it's
>> name is but without that '.wml' suffix.
>> E.g.
>>
>> filename.wml		-> filename
>> filename.html.wml	-> filename.html
>> filename.xhtml.wml	-> filename.xhtml
>> filename.shtml.wml	-> filename.shtml
>> filename.perl.wml	-> filename.perl
>> filename.php.wml	-> filename.php
>> filename.css.wml	-> filename.css
>> ...
>>
>> Is this possible to archive with WML as
>> it stands today,
> 
> Yes, although it does not work with wmk as documented (which seems to
> be a bug since the result is quite strange).
> 
> Here's the howto:
> 
> Write as one line of your .wmlrc "-o %BASE". If you want to use wmk,
> too, you have to put this line into your .wmkrc, too, although it
> shouldn't be necessary according to the documentation.
> 
> Regarding the above mentioned bug:
> 
> If you put it into your .wmlrc but not your .wmkrc and then use wmk,
> in case of filename.html.wml as source you'll get both (!)
> filename.html as well as filename.html.html which is definitely not
> what I would expect.
> 
> Shlomi: Can you confirm this with the current WML dev version? I've
> used an older WML 2.0.8 from Debian 3.0 (Woody) here for testing this
> issue.
> 
> Looking at the wmk source, it seems that wmk ist not reading .wmlrc
> files at all and then, if no -o is present in either a) the wmk
> command line, b) the .wmkrc or c) the source file, it wmk
> automatically adds a "-o$base.html" and wml in the above mentioned
> setup adds another one when parsing the .wmlrc. So IMHO wmk should at
> least check the .wmlrc for "-o" options and the according long format.
> (Or we should document this "feature" in the man pages for wmk. :-)
> 
> Or did I oversee something?
> 
> 		Regards, Axel

-- 
----
------
--------

Rolf Sponsel

___________________________________________e_n_d___o_f___m_e_s_s_a_g_e_
_____________________________________________________________________
Website META Language (WML)                         http://thewml.org
User Support Mailing List                        [email protected]
Automated List Manager                            [email protected]