Re: Attributes with Intent (and namespaces)

David Megginson (david@megginson.com)
Wed, 8 Jul 1998 07:11:34 -0400


Chris Maden writes:

> I don't see a need for either of these. XSL stylesheets shouldn't
> need to be appreciably different from other XML documents. In other
> words, my stylesheet might have
>
> <?xml version="1.0"?>
> <?xml:namespace ns="http://www.w3.org/TR/REC-XSL" prefix="xsl"?>
> <?xml:namespace ns="http://www.w3.org/TR/REC-HTML4" prefix="html"?>
>
> <xsl:rule pattern="html:p">
> <paragraph>
> <xsl:children/>
> </paragraph>
> </xsl:rule>

This is neither explicitly forbidden nor explicitly supported in the
current namespaces draft -- the meaning of colons in attribute values
is undefined.

More generally, however, it might make sense to partition rules by
namespace, either in separate XSL specs or at least in separate
sections; the reason is that well-known namespaces will often come
with their own XSL specifications, and the author of a top-level XSL
spec should not have to duplicate that work.

All the best,

David

-- 
David Megginson                 david@megginson.com
           http://www.megginson.com/