Hi All,

I have recently developed a filter for HTML::Template, tentatively 
named HTML::Template::wfXML, that modifies the syntax used 
by the HTML::Template tagset in conformance with well formed
XML syntax.  The filter offers the following features:

1) The HTML::Template tags are represented as qualified names in 
the 'tmpl' namespace.

<TMPL_LOOP foo>...</TMPL_LOOP>

becomes:

<tmpl:loop foo>...</tmpl:loop>

2) I have added a TMPL_ATTR attribute as a synonym for TMPL_VAR
to allow dynamic attributes to be expressed in valid XML syntax.

<html:img src="<TMPL_VAR foo>" />

becomes:

<html:img tmpl:attr="src foo" />

3) Empty template tags are terminated with '/>'.

<TMPL_VAR name=foo>

becomes:

<tmpl:var name="foo" />

So far, the Perl module is complete and reasonably well tested, with the 
POD documentation on the way.  I am currently working on a DTD to 
define the modified tags as an XHTML 1.1, module, or at least wading 
through the XHTML 1.1 spec with the intentions of doing so ;-)

Any comments or suggestions will be appreciated.  I plan to submit an
alpha version to the SourceForge site when the docs and DTD are done.


Kurt Stephens
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to