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

Re: XHTML 2 Working Group won't be renewed?

  • From: Michael Ludwig <mlu@as-guides.com>
  • To: 'XML Developers List' <xml-dev@lists.xml.org>
  • Date: Fri, 10 Jul 2009 20:07:46 +0200

Re:  XHTML 2 Working Group won't be renewed?
Michael Kay schrieb:

>> What's the alternative to scopedness? One global scope?
>
> I think it would have been better not to have prefixes at all.
> They cause a lot of the complexity in the model. Declare all the
> namespaces, perhaps with document scope, and perhaps allowing the
> "document type" to define the set of namespaces implicitly; require
> each namespace to have a definition that defines all the local names
> present in the namespace; require any reference to a name that's
> present in more than one of the namespaces to be explicitly qualified
> with the namespace name. And then use shorter namespace names, along
> the lines of Java package names, so that writing the full name is
> typically 40 characters rather than 120.

<?xml version="1.0"?><!-- still 1.0, of course -->
<!DOCTYPE stylesheet [
   <!NAMESPACE xsl PUBLIC org.w3.xslt><!-- contains XSLT -->
   <!-- The prefix is optional; it's only needed for disambiguation. -->
   <!NAMESPACE SYSTEM "moin.dtd"><!-- SYSTEM identifier, no prefix -->
   <!NAMESPACE milu de.milu.miau (eins zwei param)><!-- declared here -->
   <!NAMESPACE de.milu.wau (drei vier)><!-- no prefix here -->
]>
<stylesheet version="2.0">
   <xsl:param name="bla"/><!-- xsl:param vs. milu:param -->

   <template match="@*|node()">
     <copy><apply-templates select="@*|node()"/></copy>
   </template>

   <template match="eins">
     <copy><apply-templates/></copy>
     <zwei><value-of select="$bla"/></zwei>
     <moin> nein </moin><!-- element from moin.dtd -->
     <milu:param>42</milu:param><!-- prefix, but global -->
     <vier/>
   </template>
</stylesheet>

Michael Ludwig


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