[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
Why not use <xsl:if test=".=$var_masterinformacion_id">ok<xsl:if/> instead of <xsl:choose> ? To me your code seems correct (but i'm not an expert...). Is the variable accessible from your context node (<xsl:for-each select="masterinformacion_padre">) What error message do you get ? Can we have the whole xsl code ? -----Message d'origine----- De : owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]De la part de Dionisio Ruiz de Zarate Envoyé : jeudi 4 mars 2004 13:53 À : xsl-list@xxxxxxxxxxxxxxxxxxxxxx Objet : problen comparing node with one variable in xslt with this. <xsl:variable name="var_masterinformacion_id"> <xsl:value-of select= "sn_servicioproyecto/masterinformacion_sel"/> </xsl:variable> <xsl:value-of select= "$var_masterinformacion_id"/> i print the variable value with this: <xsl:value-of select= "masterinformacion_padre"/> i print the node value but i want to compare tthe variable and the masteriformacion_padre value and if are the same value print ok i am trying with this code: <xsl:for-each select="masterinformacion_padre"> <xsl:choose> <xsl:when test=".=$var_masterinformacion_id">ok</xsl:when> </xsl:choose> </xsl:for-each> butr it doesn't run. can you help me please? i am working in this problem during 2 days and i cannot resolve it. can you help me please? thyanks XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|