Re: [Zope] The XML-dtml notation "&dtml-variable;"
What is this &dtml-variable; all about? Is it something that I can use or is it only for xml stuff? I would like to put a variable in the title of a document within a Z class. Can it be done? At 10:33 am -0500 4/11/99, Christopher Petrilli wrote:
Would something like this be more palatable?
<dtml-var foo default="Empty">
I think that would be great. I have several places where I have to check the existence of a variable before I use it. This would be much more eligant. Phil A ---------------------------------------------------- Philip Aylesworth purple@mnsi.net
What is this &dtml-variable; all about? Is it something that I can use or is it only for xml stuff?
No, you can use it anywhere. The thing is that: <TAG ATTR="<dtml-var My-Var>" > isn't valid XML (nor HTML). <TAG ATTR="&dtml-My-Var;" > is. In side Zope it doesn't matter really, but for interoperability and standards... //johan
participants (2)
-
Johan Carlsson -
Philip Aylesworth