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

Re: RE: James Clark: XML versus the Web

  • From: David Carlisle <davidc@nag.co.uk>
  • To: Henri Sivonen <hsivonen@iki.fi>
  • Date: Mon, 13 Dec 2010 23:07:17 +0000

Re:  RE: James Clark: XML versus the Web
On 13/12/2010 22:54, Henri Sivonen wrote:
> On Dec 13, 2010, at 01:25, David Carlisle wrote:
>
>> On 13/12/2010 03:15, Henri Sivonen wrote:
>>> The script element in thehttp://www.w3.org/1999/xhtml  namespace
>>> has already been implemented. How would a new processing
>>> instruction be better?
>>
>> XML is designed (mostly) not to use fixed element names. If you are
>> styling xhtml, xhtml:script is OK, but if you are styling docbook,
>> or some personal xml vocabulary or anything else other than xhtml,
>> then adding a processing instruction will maintain the validity of
>> your source, but adding an xhtml:script will not.
>
> It seems to me that editing your .rnc is easier than getting everyone
> who already implements script in the http://www.w3.org/1999/xhtml
> namespace to implement a new PI.
>

You asked how it would be better and I think that's the main difference.
(Although it wasn't my suggestion initially).

Also of course a PI could be placed in the most logical place at the 
start of the document, whereas you'd have to extend every xml format to 
allow xhtml:script somewhere within the document, and then have that 
script affect the rendering of the whole document. Counting is also a 
rather subjective buisness, but I'd have thought there were actually 
rather few people who implement xhtml:script (with a lot of users)

Actually you presumably (if using xhtml:script) wouldn't change the 
schema and wouldn't add it inline to the document, you'd always end up 
having an initial html file with (just) the script that loaded the xml 
and transformed as required.

David


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.