In my app I need to send en email with the body of the message
retrieved from the database.
How do I retrieve the html instead of text? Thanks in advance.
-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Taras,
You will need to use the url-generator to get
the content of the page, see http://www.orbeon.com/ops/doc/processors-generators-url
Ryan
Ryan
Puddephatt
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Taras Bahnyuk
Taras,
xsl:value-of always returns the string value of XML nodes, in other words it only looks at text nodes. Try xsl:copy-of instead. -Erik Taras Bahnyuk wrote: > In my app I need to send en email with the body of the message retrieved > from the database. > In the db I store an .html file. > Something like. > > <html> > <head> > <title></title> > </head> > <body> > Body content. > </body> > </html> > > > Later on I create an email with > > <p:processor name="oxf:xslt"> > <p:input name="content" > href="http://wsasd464:8080/exist/rest/db/PCS/config/cs_provisional.html"/> > ......... > > <to> > <email>[hidden email]</email> > <name>Taras Bahnyuk</name> > </to> > > <subject>Subject</subject> > <body mime-multipart="alternative"> > <part name="part1" > content-type="text/plain">update</part> > <part name="part2" content-type="text/html"> > <xsl:value-of > select="document('input:content')"/> > </part> > ..... > </p:processor> > > > But the construct <xsl:value-of select="document('input:content')"/> > returns only text Body content. Leaving away all html tags. > > How do I retrieve the html instead of text? > > Thanks in advance. > Taras > http://barmalini.blogspot.com > > > > > -- The information contained in this communication and any attachments > is confidential and may be privileged, and is for the sole use of the > intended recipient(s). Any unauthorized review, use, disclosure or > distribution is prohibited. If you are not the intended recipient, > please notify the sender immediately by replying to this message and > destroy all copies of this message and any attachments. ASML is neither > liable for the proper and complete transmission of the information > contained in this communication, nor for any delay in its receipt. > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Ryan Puddephatt
Thanks :-)
From: Ryan Puddephatt [mailto:[hidden email]] Sent: dinsdag 13 februari 2007 11:37 To: [hidden email] Subject: RE: [ops-users] Retrieving HTML content Taras,
You will need to use the url-generator to get
the content of the page, see http://www.orbeon.com/ops/doc/processors-generators-url
Ryan
Ryan
Puddephatt -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Erik Bruchez
Thanks Erik,
xsl:copy-of works as I wished :-) You're very nice and very knowledgeable person. Taras http://barmalini.blogspot.com -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: dinsdag 13 februari 2007 12:01 To: [hidden email] Subject: Re: [ops-users] Retrieving HTML content Taras, xsl:value-of always returns the string value of XML nodes, in other words it only looks at text nodes. Try xsl:copy-of instead. -Erik -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |