[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Is it legal to extend the xml-stylesheet DTD ?

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)
pseudo attributes dtd
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.