By default in XSLT elements do not conserve white space, i.e. all contiguous text nodes containing only white space are removed. So in your case, your CR-LF characters are going to be removed. The only exception to this is xsl:text. If you use xsl:text around your line break, things should work, e.g.:
<xsl:text> </xsl:text>
-Erik
Matt Allen wrote:
Guys,
Im using the Email processor, and just trying to make some key pair values be written to the email body, to no avail.
This is what I have:
<p:processor uri="oxf/processor/xslt-2.0"> <p:input name="data" href="#instance"/> <p:input name="config"> <message xsl:version="2.0"> <smtp-host>mail.xxx.com.au</smtp-host> <from> <email>[EMAIL PROTECTED]</email> <name>Web Enquiry</name> </from> <to> <email>[EMAIL PROTECTED]</email> <name>Website Enquiry</name> </to> <subject>Website Enquiry</subject> <text> <xsl:for-each select='/form/contact-us/*'> <xsl:value-of select="name()"/>: <xsl:value-of select="."/> </xsl:for-each> </text> </message> </p:input> <p:output name="data" id="email-data"/> </p:processor> <p:processor uri="oxf/processor/email" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="data" href="#email-data"/> </p:processor>
I can for the life of me get the key pairs on separate lines, and if I put any sort of XML in there, it breaks with a "contains <x> where no <x> my occur" OXF validation error.
Any Ideas?
Thanks, Matt
Matt Allen
River Dynamics
Winner, Innovation In Claims Management - 2003 Australasian Claims Expo
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
