Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
xsl not working
Hi,
I have a xsl and i am getting this xsl content as a string by using ora:getContentAsString(ora:processXSLT('IterationStatus.xsl',bpws:getVariableData('Invoke_HTTP_SourcePackageServlet_OUT_Servlet_PostData_InputVariable','payload'))).
I am trying to send a mail by invoking a web service. The body of the mail should contain this xsl content. The issue is i can able to receive email only in Junk folder. Also only the "h1" tag is getting printed, and the rest of the things are not actually printed. Can you please help why this text area is not getting printed. But the input variable of the web service contains the necessary data.
*<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">*
*<!-- xsl:output method="html"/ -->*
*<xsl:template match="/">*
*<html>*
*<head />*
*<body>*
h1(Please note I have not given tags)
*<font color="blue">Production Process XML:</font>*
*</h1>*
*<textarea rows="25" cols="50">*
*<xsl:copy-of select="*" />*
*</textarea>*
*</body>*
*</html>*
*</xsl:template>*
*</xsl:stylesheet>*
Thanks.
I have a xsl and i am getting this xsl content as a string by using ora:getContentAsString(ora:processXSLT('IterationStatus.xsl',bpws:getVariableData('Invoke_HTTP_SourcePackageServlet_OUT_Servlet_PostData_InputVariable','payload'))).
I am trying to send a mail by invoking a web service. The body of the mail should contain this xsl content. The issue is i can able to receive email only in Junk folder. Also only the "h1" tag is getting printed, and the rest of the things are not actually printed. Can you please help why this text area is not getting printed. But the input variable of the web service contains the necessary data.
*<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">*
*<!-- xsl:output method="html"/ -->*
*<xsl:template match="/">*
*<html>*
*<head />*
*<body>*
h1(Please note I have not given tags)
*<font color="blue">Production Process XML:</font>*
*</h1>*
*<textarea rows="25" cols="50">*
*<xsl:copy-of select="*" />*
*</textarea>*
*</body>*
*</html>*
*</xsl:template>*
*</xsl:stylesheet>*
Thanks.
Answers
-
Hi,
What are you trying to achieve? Do you want to display the xml payload in html?
your copy-of tag needs to be like so, to copy the entire xml into html:
xsl:copy-of select=".".
Also to display xml content in html, you might have to escape using<pre> tags, and use < instead of <, > instead of > etc.
.
regards,
shanmu.
http://www.prshanmu.com/articles/ -
yes. I want the xml content as html. In email i can able to see only Status Production Process XML: . I cannot able to view textarea, and inside this textarea this xml content should be present.When i right click and select view source in the email, i can able to see all the xml contents. Please help to resolve this.
Thanks.
This discussion has been closed.