[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problen comparing node with one variable in xslt

Subject: Re: problen comparing node with one variable in xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 4 Mar 2004 12:49:37 GMT
comparing node in xslt
   <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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.