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

<page> and <info> tags



Michael McNamara writes:
 > 
 > I'm using wml 1.6.6
 > 
 > I use the <page> tag.
 > 
 > I want to get <meta name="Keywords" content="keys, locks, doors">
 > inserted into the <head> </head> region, as per the HTML spec.
 > 
 > <page> has a info attribute, but it appears to accept no arguments,
 > and if present, all it seems to do is include:
 > 
 > <meta name="Author"    content="Michael McNamara, mac@medusa.surefirev.com">
 > <meta name="Generator" content="WML 1.6.6 (25-06-1998)">
 > <meta name="Modified"  content="28-08-1998 18:31:36">
 > 
 > in the <html> section.  This is the right place, but I want seach
 > keywords!
 > 
 > The <info> tag accepts 'keywords' and 'description', but how do I get
 > the stuff put in the <html></html> region?
 > 
 > <info> accepts a style directive, and the man page has:
 > 
 > <info style={comment,table,meta,oneline} domainname="..."
 >             copyright="..." created="..." keyword="..." description="...">
 > 
 > which is all the documentation I see.
 > 
 > Through testing, I observe:
 > style="comment" inserts a nice comment;
 > style="meta" gives me what I want, but in the wrong place, I.E., right 
 > where I have the <info> tag.
 > style="table" gives me just the Author, Generator and Modified
 > (ignores the keywords and the like) as a nice inline table
 > style="oneline" give me the Author, Generator and Modified as a single 
 > line, again ignoring the kywords.
 > 
 > 
 > 
 > Please help me!  I am reduced to hand editing the output of WML...
 > 
 > -- 
 >     /\     Michael McNamara            <mac@surefirev.com>
 >    /\//    SureFire Verification Inc.
 >   /\///\   <http://www.surefirev.com>
 >  _\///\/        Formerly Silicon Sorcery
 >   \//\/    Get my verilog emacs mode from
 >     \/     <http://www.surefirev.com/verilog-mode.html>
 >                                      

Ok, I made the following changes to the page.wml:

There has to be a better way, because the WML home page has nice META
tags, and I know Richard must make those totally WML...

Clearly there is an easy way, and I just can't understand it from the
documentation...



*** page.h	Fri Aug 28 19:31:06 1998
--- /c/build/wml-1.6.6/wml_include/std/page.wml	Fri Aug 28 19:21:48 1998
***************
*** 35,42 ****
  <ifeq "<get-var slices>" "" "[WML_STDPAGE_HEAD:"><html>
  <head*>
  <ifeq "<get-var info>" "" <info style=meta>>\
! <if "<get-var info-description> <get-var info-keywords>" 
! 	<info style=meta description=<get-var info-description> keywords=<get-var info-keywords>>\
  <if "<get-var title>" "<title*><get-var title></title*>
  ">\
  <<WML_PAGE_HEAD_<get-var __std_page_cnt>>>\
--- 35,41 ----
  <ifeq "<get-var slices>" "" "[WML_STDPAGE_HEAD:"><html>
  <head*>
  <ifeq "<get-var info>" "" <info style=meta>>\
! <if "<get-var info>" <info style=meta <get-var info>>\
  <if "<get-var title>" "<title*><get-var title></title*>
  ">\
  <<WML_PAGE_HEAD_<get-var __std_page_cnt>>>\


Then the following works:

<page title="SureFire Verification Inc." bgcolor="#FFFFFF" 
  info-description="SureFire Verification - The Design Purification Company" 
  info-keywords="Verilog, Verilog-HDL, Coverage, SureFire Verification, test generation, IC design, ASIC design, chip design, verilog-mode.el, verilog coverage, automatic functional verfication, vericov, surecov, covermeter, coverscan"
  >
<p> La di da... </p>
</page>
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com