Skip to Content
avatar image
Former Member

How do I render XML Forms as HTML?

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Apr 08, 2004 at 10:04 AM

    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 comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Mustafa

      I have a problem which can be related to you answer. When you define the path it's my understanding that a HTML file is generated from the XML and put into the defined folder. Is that right?

      Presuming i'm right why is my news put into the folder /documents/news when something else is defined in the path. Do I need to make some other configurations in order to make it work?

      Best regards

      Ole Mose Nielsen