[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: tricky XHTML 1.0 namespace question

  • From: ht@c... (Henry S. Thompson)
  • To: XML-Dev Mailing list <xml-dev@i...>, www-html@w...
  • Date: 17 Jan 2000 18:18:01 +0000

xhtml a href
"Simon St.Laurent" <simonstl@s...> writes:

> [example elided]
> This uses the default namespace for its work.  Would it be possible (I
> think it
> should be) to use a prefix?


>               [?xml version="1.0" encoding="UTF-8"?]
>               [!-- initially, the default namespace is "books" --]
>               [book xmlns='urn:loc.gov:books'
>                   xmlns:isbn='urn:ISBN:0-395-36341-6' xml:lang="en" lang="en"]
>                 [title]Cheaper by the Dozen[/title]
>                 [isbn:number]1568491379[/isbn:number]
>                 [notes]
>                   [!-- make HTML the default namespace for a hypertext
> commentary --]
>                   [xhtml:p xmlns:xhtml='http://www.w3.org/1999/xhtml']
>                       This is also available [xhtml:a
> xhtml:href="http://www.w3.org/"]online[/xhtml:a].
>                   [/xhtml:p]
>                 [/notes]
>               [/book]

One bug:  there are no 'global' attributes in the XHTML DTDs, so that
should be [xhtml:a href="http://www.w3.org/"]online[/xhtml:a].

> If so, is:
>                       This is also available [xhtml:a
> xhtml:href="http://www.w3.org/"]online[/xhtml:a].
> equivalent to:
>                       This is also available [xhtml:a
> href="http://www.w3.org/"]online[/xhtml:a].

No.  Only the latter is correct.

> While XHTML seems to assume that attributes with no prefix fall into the
> namespace of their containing element throughout, I can't find this stated
> explicitly.  (Perhaps they weren't aware that this has been a contentious
> issue?)

Why should they state it explicitly, when the Namespace REC explicitly
says that is NOT the case?  The fact that people on this list have
been confused about this does not mean the HTML WG is confused or is
responsible for sorting out their confusion.  See my message to Dave
about this [1] for a succinct statement of why this is a time-wasting
red herring which IS perfectly clearly specified in the Namespace REC.


[1] http://www.lists.ic.ac.uk/hypermail/xml-dev/xml-dev-Jan-2000/0319.html
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@c...
		     URL: http://www.ltg.ed.ac.uk/~ht/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.