[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
<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
|
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
|