[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Types and Context
Hi Jonathan, > actually no. the entities can be defined in an external DTD subset. > only this would need to be edited to add an element to the > 'this.person' pattern, but this is only an example to demonstate the > ability to do this with XML 1.0. I understand that this is only an example. I was talking about using XML Schema as the schema syntax, and the point that I was making is that having a label for the type allows you to have one edit (that affects the schema) rather than two (whether the second edit is in the local or remote DTD for the stylesheet). Or perhaps there's some way of mechanically link the name of a type in the schema to the names of the entities that you use in the stylesheet? If you were using Schematron, you could share entity definitions of this kind between Schematron and the stylesheet, which would be quite a nice way of adding more abstract/general information to Schematron. > To be clear about this, what I have suggested can be done _today_ > with todays tools. There is no need for XSLT/XPath 2.0. True, an > extension XSLT function would be very helpful, but that hardly ought > be a complete version increment on XPath itself. I'm not sure whether you're arguing against there being an XPath 2.0 or just asserting that you can do today all that you need with XSLT/XPath. I certainly won't argue against the latter, if that's what you mean, but surely the point of the next version of XSLT/XPath is to make it *easier* to do the difficult things (including accessing schema information, although it's only a 'should' in the requirements, not a 'must'). Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/
|
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
|