xsl-list
[Top] [All Lists]

Re: Nodeset problems

2005-07-27 06:38:32


  <xsl:variable name="Test-Input" select="ms:node-set($Input)"/>

I'm surprised that you need to do that (or even that it's allowed)
in most implementations a node-set() extension function can only be
applied to a result tree fragment (converting it into a node set)
and result tree fragments are only generated by xsl:variable without a
select argument.

I don't have the .net xslt but I'd have thought that a parameter would
have been a node set (or a string).

I would guess that you have bound the input parameter to the top level
element rather than the root node so $input is root
so $input/root is looking for
<root> 
  <root>
which is empty and you want
$input/something

Why not use teTh document() function rather relying on the
system-specific mapping of DOM nodes to xpath node sets?


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
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>