Re: [xsl] problen comparing node with one variable in xslt

Subject: Re: [xsl] problen comparing node with one variable in xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 Mar 2004 12:49:37 GMT
   <xsl:variable name="var_masterinformacion_id">
	   <xsl:value-of select= "sn_servicioproyecto/masterinformacion_sel"/>
   </xsl:variable>

In general you shouldn't do that, but instead should do

<xsl:variable name="var_masterinformacion_id"
	 select= "sn_servicioproyecto/masterinformacion_sel"/>


However that is unlikely to be your problem here.
It's not possible to say what your problem is as the code you showed:

  <xsl:for-each select="masterinformacion_padre">
  <xsl:choose>
  	<xsl:when test=".=$var_masterinformacion_id">ok</xsl:when>
  </xsl:choose>
  </xsl:for-each>

is syntactically correct but you say 

"it doesn't run."

do you mean that your system gave an error message and produced no
output, or just that you did not get the output you expect?

As always, it's best to post a _small_ complete input doc, and a _small_
complete xslt stylesheet then people can run it and comment on the
results.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. 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


Current Thread