This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Quick one - can attribute values contain spaces?
- To: ian_tindale at yahoo dot co dot uk
- Subject: [xsl] Re: Quick one - can attribute values contain spaces?
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Wed, 1 Aug 2001 12:05:38 -0700 (PDT)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
Ian Tindale wrote:
> Quick one - can attribute values contain spaces? I realise this is probably
> more a general XML question, actually, come to think of it.
>
> Like this:
>
> <elephant tshirt="bloody huge" />
Yes. There are several attribute types that (the values of which) are/must-be a
space-separated list of names and a validating parser will not accept another
delimiter (that cannot be used in a name). Such are: IDREFS, ENTITIES, NMTOKENS.
There are useful templates (e.g. for string padding) which use an attribute value
containing ***only*** spaces.
Cheers,
Dimitre Novatchev.
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list