Subject: RE: [xsl] Comparing node for identity using union From: "Jim Neff" <jneff@xxxxxxxxxxxxxxx> Date: Wed, 19 Jan 2005 09:03:38 -0500 |
This might be a good time for one of the gurus on this list to briefly explain data-types in XSLT for us n00bs. I struggle with this a lot as I am used to procedural languages that will do data-type converstions for me. I guess some questions that I'd like to see answered are : How are variables typed in XSLT? When the variable is defined or when its used? Will XSLT automatically convert data types? i.e. does "2" = 2 Why or why not? Can I just explicity use data-type functions, like number() or string()? Is this a good way to do this? Or if you can point us to resources that explains the foundations of data-types in XSLT, that would be great. Thanks, Jim Neff -----Original Message----- From: Antsnio Mota [mailto:amsmota@xxxxxxxxx] Sent: Wednesday, January 19, 2005 8:02 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Comparing node for identity using union Well, when i say it's a bug i'm basing myself on the fact that i've tryed my xslt with MSXML3, MSXML4, Xalan, Saxon6.5.3, Saxon8.1B, Xsltproc, and using Javascript /Sarissa DomDocument.transformNodeTo Object and XSLTProcessor.transformToDocument and this problem occurs ony when using this last one. But what do i know... The $pos is defined like <xsl:param name="pos" select="0"/> and i'm passing the value from Javascript The sugestion from Jonis also work OK <xsl:variable name="snode" select="(//Menu)[number($pos)]"/> Regards.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing node for identi, David Carlisle | Thread | RE: [xsl] Comparing node for identi, Michael Kay |
RE: [xsl] Comparing node for identi, Michael Kay | Date | [xsl] Flattening hierarchic xml, re, Ragulf Pickaxe |
Month |