Subject: Re: [xsl] Nodeset problems From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 27 Jul 2005 14:38:32 +0100 |
<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 ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Nodeset problems, Ragulf Pickaxe | Thread | Re: [xsl] Nodeset problems, Ragulf Pickaxe |
[xsl] Nodeset problems, Ragulf Pickaxe | Date | [xsl] Assign if-test result value t, Levesque, Gary R |
Month |