Subject: Re: Is it legal to extend the xml-stylesheet DTD ? From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 12 Jun 2000 13:24:10 +0100 (BST) |
> I still can't make out... is a syntax like this totally illegal or > what? totally illegal. An element from the XSLT namespace may have any attribute not from the XSLT namespace, provided that the expanded-name of the attribute has a non-null namespace URI. The presence of such attributes must not change the behavior of XSLT elements and functions defined in this document. Thus, an XSLT processor is always free to ignore such attributes, and must ignore such attributes without giving an error if it does not recognize the namespace URI. Such attributes can provide, for example, unique identifiers, optimization hints, or documentation. suffix=".html" suffix is in the null namespace, so what you can do is xmlns:dan="mailto:dman@xxxxxxxx" dan:suffix=".html" > Reading the spec I can't see anywhere where the DTD specifically > excludes unnamed parameters. This is mainly because I'm not that clear > on DTD syntax. A DTD only ever allows a fixed set of attributes on any element. The above is well formed but not valid, but that is the case for almost all XSLT stylesheets. > It says the tag can contain pseudo attributes (why pseudo?) Elements have attributes and will be passed as name/value pairs to an XML application by an XML parser. But processing instructions just have text data, so if you have <?xxx aa="11" bb="222"?> then an XML application does not split that up into attribute value settings, it just dumps the whole string ' aa="11" bb="222"' on the application. Of course the application can split the string up and think of it as attributes, hence pseudo. > Am I breaking something to add my own info tags? It's not a tag, but you are breaking something. But it's easy to fix, just move into some other namespace, as above. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Is it legal to extend the xml-style, Dan Morrison | Thread | Re: Is it legal to extend the xml-s, David Carlisle |
xsl and rdf, Cheun N Chong | Date | Is it legal to extend the xml-style, Dan Morrison |
Month |