[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] 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
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]