cancel
Showing results for 
Search instead for 
Did you mean: 

XML ans XSL in portal project

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

Hi Vikas,

Take a look at following weblog by me.

regards,

prakash

Former Member
0 Kudos

Hi Prakash,

Thanks for the quick reply. These both links are refering to same weblog. I think there is some typing mistake.

But this is really a good link. I guess this will help me a lot. But for this I have to register as you mentioned, Is this registration free??

Anyways thanks once again I will try this and use them and will come back to you.

Rgds,

Vikas

Former Member
0 Kudos

Sorry about that.

Former Member
0 Kudos

Hi Prakash,

Thanks once again!! Well I guess this material is enough for me to do a lot of Homework

Rgds,

Vikas

pravesh_verma
Active Contributor
0 Kudos

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