[MTOS-dev] More sophisticated interface of MT::Template::Node (Reloaded)

Brad Choate brad at sixapart.com
Thu Mar 13 22:40:32 PDT 2008


On Mar 13, 2008, at 9:36 PM, Hirotaka Ogawa wrote:

> Further issue: "Why cannot we use XML::LibXML or XML::XPath for
> parsing and handling templates, as XML::Atom does?"

Because MT templates are not XML templates. We do stuff like this all  
the time:

<a href="<mt:EntryPermalink>">

Which can't be valid XML. To be valid XML, you'd have to do really  
user-unfriendly things to the template syntax, such as requiring all  
HTML angle brackets to be encoded:

&lt;a href="<mt:EntryPermalink>"&gt;

and on top of that, you'd have to require the user to create templates  
that validated. That's asking too much, I'm afraid.

--
Brad Choate
Engineering Manager, Movable Type, Six Apart, Ltd.
http://www.sixapart.com/movabletype/
Mobile: (918) 271-0105  -  AIM: bschoate



More information about the MTOS-dev mailing list