|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: To DTD or Schema? Issues for Transformiix, Soblotron etc
> Hopefully someone can offer me some guidance here about the > validity of using schema's versus DTD' > ... > but David seems to be saying below that we should go DTD > based. Schemas look a lot easier to handle, but if we can't do our > XSLT processing based on them maybe we need to step back. PS You would be in not much better position as far as attribute defaults go if you used a DTD. If you specify defaults in microsofts schema language you have to use an XML parser that understands that (which may just be MSXML as far as I know, but maybe others as well, the spec is there for anyone to implement) If you specify the defaults in a DTD and put that DTD in a separate file rather than including the declarations in the `local subset' at the top of the document, then a non validating XML parser is _not_ obliged to read the DTD and so may not find your default attributes either. In practice most non validating parsers do read the DTD if it is available but the XML spec makes it explict that they need not do so. So if you want your XML document to be usable in multiple contexts with the right attributes, stick them on the elements explictly. If you know that it is only going to be used in a specific context and the attributes will be defaulted from some means, even if that means is from a non standardised schema proposal from the evil empire, then probably that is perfectly reasonable thing to do. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








