xsl-list
[Top] [All Lists]

Re: [xsl] XPath element constructor

2012-08-28 16:18:34
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.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>