PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Best approach for XSLT on XML File Layout Object?

edited Jun 1, 2017 5:03AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 2 commentsAnswered

I have existing XML File Layout Object that I want to apply a XSLT transformation against.   Within the App Engine process,  I am converting the file to a string, building my XSLT string, using TransformEx function to change, and then writing the updated string out to new file.  See simplified:

Local string &xmlStr = &MYFILE.GetString( True);

Local string &inXSLT = "<?xml version=""1.0""?><xsl:stylesheet xmlns:xsl=""htt..."" version=""1.0"" >  etc, etc, ";

Local string &xmlStr_OUT = TransformEx(&xmlStr, &inXSLT);

&MYFILE2.WriteLine(&xmlStr_OUT);

1. This is working.  But is there a better approach? 

2. If not, where can I write/save my XSLT to use via PeopleCode?  It is getting pretty big.  I tried in an HTML object, but one cannot reference an HMLT Object within an App Engine processes.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center