W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 2000

Suggestion for improving XSLT

From: Lamers, Peter <LamersP@usoft.nl>
Date: Fri, 8 Dec 2000 16:12:02 +0100
Message-ID: <EFC38E57260DD311B0170090275D213032E3FE@nlpdpo05.products.usoft.nl>
To: xsl-editors@w3.org
Dear Sir/Madam,

Recently I have been involved in writing XSLT-documents. I find XSLT is a
very usefull stylesheet language. 
However, I have encountered a limitation in the language specification, that
makes certain situations impossible or at least very dificult.
In elements where you need to specify a QNAME it is not possible to insert a
reference to a value in the XML-document. 

Example: 
You want to declare an attribute into the HTML document that you are
generating that represents an event-handler (onClick, onFocus, etc.). The
concerning event-handler is specified in the XML document in the attribute
'type' of an element named 'Event'.
Preferably you want to be able to implement this in the following way:

<xsl:attribute name='Event/@type'> 
	alert( "Hello World" )
</xsl:attribute>

This will not work correctly because the 'name'  attribute can not handle
XML-references.

I hope this problem will be solved in the next version of the XSLT language
specification,

Best regards,
Peter Lamers
USoft Products
Holland
Received on Friday, 8 December 2000 10:09:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:51 GMT