Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: Use of tags in header meta statements

Thread Tools

Re: Use of tags in header meta statements

Alan J. Flavell
Posts: n/a
On Tue, Jul 22, Dean Tiegs inscribed on the eternal scroll:

[I -ajf- had written, (specifically in regard to the character '<' in
attribute values:]

> > Well, I'm sure that this was legal in HTML: can you cite something
> > in the specifications which rules it out in XHTML? I don't see
> > anything listed in for example
> > which would rule-out this usage.

> The OP had specifically mentioned XHTML, so those were the syntax
> rules I was thinking of. (Actually I wasn't aware this was a
> difference from HTML, so I just learned something.)

And so, it seems, did I. How curious that they didn't seem to
point this up as a difference from HTML.

> Here's the citation:
> "The ampersand character (&) and the left angle bracket (<) may appear
> in their literal form only when used as markup delimiters, or within a
> comment, a processing instruction, or a CDATA section. If they are
> needed elsewhere, they must be escaped using either numeric character
> references or the strings '&amp;' and '&lt;' respectively."
> <>

So it does, although that's somewhat narrative in nature. But this:

appears to clinch the deal, as far as XML is concerned. Does this
restriction carry-over to XHTML, and if so, why isn't it mentioned

> Note that attribute values are not listed as an exception. I wonder
> why it wasn't an exception? It causes no ambiguity, at least not for
> "<". The authors probably just wanted to minimize the exceptions and
> make the recommendation clear and simple.

Perhaps we could ask the XML group (x-posted).

[please feel free to narrow f'ups to whichever group you see fit.]

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
META Tags Uniqueness for WebForms which use MasterPages Goofy ASP .Net 2 12-18-2006 05:34 PM
html tags within meta tags allowed? Donald Firesmith XML 5 01-08-2005 11:29 PM
Use of meta tags Robert Javascript 14 10-26-2004 06:31 PM
use of meta tags. A Leon HTML 17 04-11-2004 07:54 AM
Newbie Q: Which Meta-Tags ought I to use? John Latter HTML 4 09-07-2003 06:06 PM