[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: Question about send_email - separator for mul

Subject: RE: RE: Question about send_email - separator for multiple recipients - need help!!!!!
From: cknell@xxxxxxxxxx
Date: Tue, 01 May 2007 10:39:07 -0400
RE: RE:  Question about send_email - separator for  mul
This appears to be a fragment of your stylesheet. It ends with two closing tags (</xsl:when> 
and </xsl:choose>) that have no matching opening tags.

Please send the entire template so we can see the context.

You haven't shown us an example of the XML that this stylesheet fragment is designed to process.

We don't know what kind of output you are expecting (e.g., XML, text).

We don't know what the current output looks like.

You've taken the first step, now give us everything we need to help you.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Shirley Gasch <sgasch@xxxxxxxxxxxxxxxxxxxxx>
Sent:     Tue, 1 May 2007 10:19:07 -0400
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  RE:  Question about send_email - separator for multiple recipients - need help!!!!!

Here is my XML/XSLT:

	<form method="post" name="EccrPrint"><xsl:attribute 
name="action">FrezMod.xsl</xsl:attribute>
	<input type="hidden" name="-db" value="WebWaivers"/>
	<input type="hidden" name="-lay" value="Normal"/>
	<input type="hidden" name="-token.error" 
value="record_detail_error.xsl"/>
	<input type="hidden" name="-script" value="SetupEmailNewWaiver"/>

	<input type="hidden" name="-recid" value="{$default-record/@recid}"/>



	<xsl:variable name="record" 
select="/fmrs:fmresultset/fmrs:resultset/fmrs:record[1]"/>
	<xsl:variable name="toemail" 
select="$record/fmrs:field[@name= 'MMEmail']/fmrs:data[1]"/>
	<xsl:variable name="emailWaivbody" 
select="$record/fmrs:field[@name= 'CreateWaiver']/fmrs:data[1]"/>
	<xsl:variable name="subject" 
select="$record/fmrs:field[@name= 'NewWaiverSubj']/fmrs:data[1]"/>



	<xsl:variable name="emailreturn" 
select="fmxslt:send_email(concat($toemail,'?from=sgasch@xxxxxxxxxxxxxxxxxxxxx&cc=sgasch@xxxxxxx&subject=',$subject),$emailWaivbody)"/>
	<xsl:value-of select="fmxslt:check_error_status()"/>
	<script type="text/javascript">this.window.close();</script>
	<xsl:choose>
	<xsl:when test="$emailreturn = true()">
	<p>E-mail 1 has been sent.</p>
	</xsl:when>
	<xsl:otherwise>
	<p>E-mail error 1.</p>
	</xsl:otherwise>
	</xsl:choose>
	</form></xsl:when></xsl:choose>

I am using a Filemaker Pro Extension Function (fmxslt), but the 
documentation is so bad that there are no details about the 
individual fields. Between Filemaker 6 and Filemaker 7/8, the 
functionality to send mail was moved from scripts inside Filemaker 
(where a separator of ";" worked) to XSLT reply pages.

What happens when I attempt to send an email with multiple recipients 
is that I get an error message about the "To Field".

Hope this helps to explain what is happening.

Shirley Gasch

>XML (and by extension XSLT) has no concept of "field".
>"send_email" is not related to XSLT.
>
>Try doing the standard things to get a useful answer on this list.
>
>1) Show a relevant sample of your XML input.
>2) Show the XSLT you are using that doesn't do what you want.
>3) Show the output you want.
>4) Show the output you are getting.
>
>--
>Charles Knell
>cknell@xxxxxxxxxx - email
>
>
>
>-----Original Message-----
>From:     Shirley Gasch <sgasch@xxxxxxxxxxxxxxxxxxxxx>
>Sent:     Tue, 1 May 2007 09:58:24 -0400
>To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject:   Question about send_email - separator for multiple 
>recipients - need help!!!!!
>
>Hi Everyone,
>
>When I use just one recipient's email address in the "To Field",
>send_email works. However, when I put in more than one, it fails. I
>believe that the problem is in tthe separator that I used in between
>the email addresses. I tried each of the following, but none worked:
>
>;
>:
>carriage return
>,
>space
>
>I am using XSLT stylesheet and XML Version 1.0 with Filemaker Pro 7,
>but I don't believe that it is a Filemaker Issue.
>
>Please help!!!!!
>
>Shirley Gasch
>--
>Shirley Gasch                                         Phone:  (301) 794-2164
>Computer Sciences Corporation       Fax:    (301) 794-8355
>7700 Hubble Drive, Rm N384
>Lanham/Seabrook, Md.  20706         email: sgasch@xxxxxxx

-- 
Shirley Gasch                                         Phone:  (301) 794-2164
Computer Sciences Corporation       Fax:    (301) 794-8355
7700 Hubble Drive, Rm N384
Lanham/Seabrook, Md.  20706         email: sgasch@xxxxxxx

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.