Entities as template placeholders?
stark at corp.phone.com
Tue Jul 6 17:33:30 BST 1999
> -----Original Message-----
> From: owner-xml-dev at ic.ac.uk [mailto:owner-xml-dev at ic.ac.uk]On Behalf Of
> Nicolas MONNET
> Sent: Tuesday, July 06, 1999 6:35 AM
> To: xml-app at sunsite.auc.dk; xml-dev at ic.ac.uk
> Subject: Entities as template placeholders?
> (Using Perl+Expat)
> I'm writing a temlpate system. Original is XML. Is it legal / sensible to
> use entitites as template place holders? Like, vairable or something.
> Example (bogus):
> <SET NAME="var" VALUE="Great">
> <HTML:IMG SRC="truc.gif" ALT="&var;">
> The HTML:IMG's ALT parameter will then contain "Great".
> What do you guys think?
The Wireless Markup Language (WML) has state and variables.
You can pass variables from one document to another, and change variable
values as a response to certain events. One document can be divided up into
smaller documents, cards, (one card corresponds to one screen, or user
interaction) and you can pass variables from one card to another within the
same document. The dollar sign is used for variable names (e.g. $myvar).
WML is used in mobile phones. Variables and state makes it possible to
create applications with minimal over-the-air round-trips.
The latest version is 1.1, specification is available at
Before WML is sent to the phones, it's often tokenized (compressed into a
binary format) by a proxy. The specification for this binary XML format is
available at http://www.w3.org/1999/06/NOTE-wbxml-19990624
> Then, is it ok to use a colon in an entity name? I knkow, I should do my
> Many are called, few are chosen. Fewer still choose.
> xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
> Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on
> CD-ROM/ISBN 981-02-3594-1
> To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
> (un)subscribe xml-dev
> To subscribe to the digests, mailto:majordomo at ic.ac.uk the
> following message;
> subscribe xml-dev-digest
> List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev