Skip to Content
author's profile photo Former Member
Former Member

XML ans XSL in portal project

Hi all,

I am new to portal content development. I want to know that can we use XML and XSL in portal projects and deploy this portal project as some specific format like: ear, par etc. If yes then which format?

I know how to use XML with XSL and also how can we parse XML using the available SAX and DOM parser.. But does Portal have some API's for doing such transformation.

Any help will be appreciated. Thanks in advance

Rgds,

Vikas

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 03, 2005 at 07:20 PM
    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vikas,

      I am also working on the same thing these days!! Well Prakash has very well described the way to use both XML and XSL and apply the XMLConvertor for that.

      I guess You must have included the jar files Prakash has mentioned. Please notice that there is a XMLConvertor which is used to do this conversion. This is the answer of your question.

      >> But does Portal have some API's for doing such transformation.

      Ans: The required API is in the following package <b>com.sapportals.portal.prt.contentconversion.XSLConverter</b>

      When you will include the jar files this class will imported. This is used for the conversion.

      I hope this also helps you!!

      Regards

      Pravesh

  • Posted on Oct 09, 2005 at 09:15 AM

    Hi Vikas,

    All answers here are very good.

    Technically, these APIs do not seem to be public (in Javadocs on SDN).

    There is a portal (non-PRT) API that is available to do the following:

    • Register XSL transformer to be used in XML iView

    • Transformation service for use doing manual transforms

    • CPFW (content provider framework) that enables you to do transformations to 3rd party content.

    All are explained at:

    http://help.sap.com/saphelp_nw04/helpdata/en/42/930690a5051d6be10000000a1553f6/frameset.htm

    Hope this helps.

    Daniel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.