[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?
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|