[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] a href="body=capture text from foot node"
Hi list, Please find below the XML and XSL files, Here I want the text from the foot node of the xml file should be captured after the "body=" in the xsl file.. ie I want to send mail using the text from the foot node to jeb@xxxxxxxxxxxxx <A HREF="mailto:jeb@xxxxxxxxxxxxx?Subject=Feedback ?body=the text from foot node should come here">Feedback</A> Any Help greatly appreciated.. Regards Eugene XML File : <?xml version="1.0" ?> - <bstat> <title>Report</title> - <record> <cust>ABC</cust> <mon1 li="5" bq="5" wt="334.00" pli="5" pbq="5" pwt="334.00" /> <mon3 li="10" bq="10" wt="2653.00" pli="10" pbq="10" pwt="2653.00" /> </record> - <record> <cust>BBC</cust> <mon2 li="1" bq="2" wt="50.00" pli="1" pbq="2" pwt="50.00" /> </record> - <record> <cust>CBC</cust> <overdue li="95" bq="754" wt="26226.48" pli="9" pbq="28" pwt="1808.50" /> <due li="99" bq="746" wt="24037.74" pli="39" pbq="306" pwt="8088.48" /> <mon1 li="194" bq="1035" wt="54301.85" pli="180" pbq="968" pwt="52340.43 " /> <mon2 li="49" bq="209" wt="6620.90" pli="41" pbq="178" pwt="6190.45" /> </record> - <record> <cust>DBC</cust> <mon1 li="5" bq="34" wt="2541.00" pli="5" pbq="23" pwt="2200.00" /> <mon2 li="11" bq="63" wt="6241.50" pli="10" pbq="62" pwt="6187.00" /> </record> <foot>I want This Text message to come in the subject line of anchor link</foot> </bstat> XSL File : <?xml version="1.0" encoding="ISO-8859-1" ?> - <xsl:stylesheet version="1.0" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform"> - <xsl:template match="/"> - <html> - <body> <h4>Report Status</h4> <xsl:apply-templates select="bstat/title" /> - <table border="1" cellpadding="4" cellspacing="0"> - <tr bgcolor="#9acd32"> <th>Customer</th> <th>Sample Status</th> <th colspan="4">Over Due B'log</th> <th colspan="5">Over Due To Pour</th> </tr> - <xsl:for-each select="bstat/record"> - <tr> - <td> <xsl:value-of select="cust" /> </td> - <td> <xsl:value-of select="sample" /> </td> - <td> <xsl:value-of select="overdue/@li" /> </td> - <td> <xsl:value-of select="overdue/@bq" /> </td> - <td> <xsl:value-of select="overdue/@wt" /> </td> - <td> <xsl:value-of select="overdue/@vl" /> </td> - <td> <xsl:value-of select="overdue/@pli" /> </td> - <td> <xsl:value-of select="overdue/@pbq" /> </td> - <td> <xsl:value-of select="overdue/@pwt" /> </td> - <td> <xsl:value-of select="overdue/@ppwt" /> </td> - <td> <xsl:value-of select="overdue/@pvl" /> </td> </tr> </xsl:for-each> </table> <A HREF="mailto:jeb@xxxxxxxxxxxxx?Subject=Feedback ?body=the text from foot node should come here">Feedback</A> </body> </html> </xsl:template> </xsl:stylesheet>
|
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
|