Attributes with Intent (and namespaces)

David Megginson david at megginson.com
Wed Jul 8 13:13:14 BST 1998


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 at megginson.com
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list