on 10-03-2005 8:17 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.