- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 05 Feb 2008 11:06:42 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5449 Summary: [XSLT 2++] Enhancement: apply-templates to atomic values Product: XPath / XQuery / XSLT Version: Working drafts Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: XSLT 2.1 AssignedTo: mike@saxonica.com ReportedBy: mike@saxonica.com QAContact: public-qt-comments@w3.org This is motivated by a suggestion from Andre Cusson on xsl-list, 2008-02-03. It would be a useful generalization of the XSLT processing model to allow apply-templates on atomic values. It is currently restricted to nodes. This would allow a capability similar to typeswitch in XQuery, but with the advantages of dynamic despatch (including the ability to override rules in a customization layer, for example). It would effectively give XSLT polymorphism over atomic types as well as over node types. This would require extension of XSLT patterns to be able to match atomic values by type. A possible syntax might be match="type(AtomicType)". The existence of such patterns would also be useful in the group-starting-with and group-ending-with attributes of xsl:for-each-group, which are currently restricted to use when grouping sequences of nodes.
Received on Tuesday, 5 February 2008 11:06:49 UTC