Subject: RE: [xsl] a href="body=capture text from foot node" From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 22 Jul 2005 19:37:43 +0100 |
Try <A HREF="mailto:jeb@xxxxxxxxxxxxx?Subject=Feedback?body={//foot}">Feedback</A> Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: jeb501@xxxxxxxxxxxxxxx [mailto:jeb501@xxxxxxxxxxxxxxx] > Sent: 21 July 2005 08:46 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] 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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] a href="body=capture text, jeb501 | Thread | [xsl] Problem with empty spaces, Lakshmi narayana |
RE: [xsl] Special letters in XML -, Michael Kay | Date | RE: [xsl] Converting CSV file to XM, Michael Kay |
Month |