Re: [xsl] XPath element constructor

Subject: Re: [xsl] XPath element constructor
From: Liam R E Quin <liam@xxxxxx>
Date: Tue, 28 Aug 2012 17:18:11 -0400
On Tue, 2012-08-28 at 22:55 +0200, Jakub Mal} wrote:
> Hi, 
> lets say, that somewhere in an XSLT context, I want to do this: 
> 
> <xsl:sequence select="<my-cool-element>foo</m-cool-element>" />

No you don't :-)
<xsl:sequence><my-cool-element....

Remember, though, that XPath is not only used in XSLT, and element
constructors wouldn't make sense in all of them.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Other stuff here.

Current Thread