[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Required item type of first operand of '/' is node
On 23/04/2010 14:49, Jacobus Reyneke wrote:
Thank you very much Martin and Michael. I think I understand it now. th ewarning about namespaces is because testing the element name as a string is not namespace aware. If you select "x:foo" then it will select that element whatever prefix is used in the source, but if you go <xsl:variable name="x" select="'x:foo'"/> select="*[name()=$x]" then it will only work correctly if the namespace bindings in the source are the same as those in the stylesheet as it will (only) match any element with name 'x:foo' whatever namespace x is bound to in that elements context, David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|