Hi,
I have created a project in the XML Forms Builder on EP6 SP2 for publishing news. I have also created a sample news item. When I try to view this news item, it is opened in a browser window. But it is still an XML file in the background. The extension of this file is ".xml" when I open the news item in the browser. As per my understanding, there is an XSL Filter working in background that processes the XML file and renders it as HTML in my browser.
What I want to know is whether there is some way in the Enterprise Portal itself whereby I can create an HTML file from the XML file, in order to publish the content on another application server. To put in a nutshell, I want to create a news item, and then I want to publish that news item on another app server, not the EP; additional condition is that the app server can publish only pure HTML, so that I want to achieve the XML-->HTML conversion within the Enterprise Portal itself.
If anybody has any ideas or suggestions on how to achieve this, please let me know...directions about relevant documentation are also welcome.
Thanks and Regards.
Hi Sagar,
first create new XSLT filter (System Administration -> System Configuration -> Knowledge Management -> Configuration -> Content Management -> Repository Filters -> XSLT Filter -> New).
You have to define path, repository and stylesheets in order to get HTML from XML.
I.E.
Name: Example
Extensions: xml
Paths: /MyNews/**
(** mean - allow transformation for all documents from this folder and subfolders)
Stylesheet: wcm://etc/xmlforms/MyNews/MyNews_show.xsl
(type your own path and xsl file (Show) that have been generated from XF Forms Builder)
Active: Yes
Repositories: documents
Press OK and restart J2EE Servlet engine
Start Portal again and from KM explorer try preview any xml file from /documents/MyNews.
Result is HTML page.
For example:
You can show your news directly from URL:
http://www.yourportal.com:50000/irj/servlet/prt/portal/prtroot/com.sap.km.cm.xmlformpreview?xmlformid=mynews&show/test=/documents/mynews/98f29b87-fb00-0010-7db5-852f38f470a6.xml
Best regards,
Mustafa Beslagic
Message was edited by: Mustafa Beslagic
Add a comment