|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Creating "mailto" in a XML file (from another XML
Hi, > <td> > <xsl:variable name="email" select=" > mysqldump/database/table/row[field[@name = 'assigned_to'] = > field[@name = > 'user_id'] ]"/> > <xsl:for-each select="$email"> > <xsl:value-of select="$email"/> > <a > href="mailto:vipul.vij@xxxxxxxxxx">Vipul Vij</a> > </xsl:for-each> > </td> this should be something like <td> <xsl:for-each select="/mysqldump/database/table[@name = 'phpbt_auth_user']/row[current()/field[@name = 'assigned_to'] = field[@name = 'user_id']]"> <a href="mailto:{field[@name = 'email']}"> <xsl:value-of select="concat(field[@name = 'first_name'], ' ', field[@name = 'last_name'])" /> </a> </xsl:for-each> </td> Notice how the select pattern start from the root and uses current() function. Cheers, Jarno - RSA 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
|

Cart








