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

Re: Are namespaces actually crypto-entities or crypto-links? (

  • From: Arjun Ray <arayq2@gmail.com>
  • To: xml-dev <xml-dev@lists.xml.org>
  • Date: Sat, 24 Jul 2021 10:10:00 -0400

Re:  Are namespaces actually crypto-entities or crypto-links? (
 On Fri, 23 Jul 2021 12:55:24 +1000, Rick Jelliffe
<rjelliffe@allette.com.au> wrote:


(To answer the quesion in the title: crypto-links, because they are
"names" and referential.) 

| There is already another good standard syntax for namespace 
| declaration if we disallow redeclaration and defaults and require 
| predeclaration: text entity declarations.
| 
| <!ENTITY ns "http://www.whatever.com/" >

Wouldn't notation declarations work just as well?

<!NOTATION ns PUBLIC "http://www.whatever.com/" >

(Note: URIs of that form also qualify as minimum literals! :-))

The advantage of entity declarations is only in the substitution to
get the Clark form explicitly, but I'm not seeing the benefit from
that. 

| 3. Getting rid of DTDs would not be, to my thinking, a goal in itself, 
| but merely a side effect of achieving the non-modal/parallelizable goals.

The DTD is a grab-bag, but among the things in it are the metadata
that could be needed for an "informed parse", making otherwise
implicit conventions explicit.  Doing away with metadata in a DTD
means placing the metadata in some form within the instance (otherwise
you're back to implicit understandings and DWIM-ing), which generally
means more syntax to distinguish the metadata from ordinary content.  

So the issue is the extra instance syntax, that perhaps does the least
damage to the canonical SGML-derived forms.

I'd suggest the data attribute syntax. 

	xxx [ yyy = "zzz" ... ]

You could have this within a start tag.  Example:

	<tag xmlns [ foo = "foo-URI" ] foo [ att1="val1" att2="val2" ] >

| 1. Go small. Have namespace but no declarations: only support a hardwired
| set of standard prefixes, such as all W3C, DC, ISO or whatever, plus
| whatever namespace-prefix mappings are known by the parser: the rest must
| use explicit Clark notation, a disincentive but a workaround.

Not very attractive, as i'm sure you're aware.

| 2. Go big. Have these link tags to provide a more generalized mechanism.

Go big, because extra syntax is _needed_. No way around this.



[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.