This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: keys and idrefs - XSLT2 request?




> So then all you have to worry about is that the stylesheet won't work
> in the same way if the DTD's not available or isn't declared in a
> particular instance document (it's always a slight issue, because of
> default attribute values and id(), but it has much more impact now).

This is in fact one of my main worries about this whole schema-awareness
idea for xpath 2.

using keys in XSLT turns out to be a lot more useful than using id()
not just because they are more general but importantly because a large
part of xslt processing is done with non validating parsers that might
or might not read any DTD.

I'm all in favour of XPath being aware of schema datatypes (lists and
doubles and dates etc) but I'd hate to see XSLT processing requiring
schema processing as a norm, and I hope to see easy ways of casting
things to the datatype (for simple datatypes) from within XSLT (or
XPath) just as xsl:key might be seen as a XSLT generalisation of an ID
attribute declaration in a DTD.

Of course without an XPath 2 draft (Mike, where are you:-) it's all a
bit hard to say. It's also hard to make any sensible comments on the
drafts that are public (like functions and operators) without seeing a
draft of the language in which these functions are supposed to live.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]