Using the transformer testing tool

The transformer testing tool helps you verify the XSLT file created for an XML event source.

The transformer testing tool allows you to check that the XSLT file that you have created for an XML event source generates XML events in the expected format. This tool runs the source XML through the XSLT file and prints the result of the XSLT transformation.

To start the transformer testing tool, run the following command:

java -cp $OMNIHOME/java/jars/Transformer.jar com.ibm.tivoli.netcool.integrations.transformer.XSLTTransformer XSLT_file Source_file

where:
  • XSLT_file is the name of the XSLT file that you are testing.
  • Source_file is the name of the XML file conforming to the schema file of the event source.

Example output from the transformer testing tool

The following is sample output from the transformer testing tool:

java -cp $OMNIHOME/java/jars/Transformer.jar 
com.ibm.tivoli.netcool.integrations.transformer.XSLTTransformer 
netcool2nvpairs.xsl netcool.xml
Output from applying transformer 'netcool2nvpairs.xsl' to source file 
'netcool.xml':-
NetcoolEventAction:string:update
Identifier:string:"GATEWAY:Gateway Reader@hostname.Mon Nov 10 14:37:55 2008"
NodeAlias:string:"hostname"
Manager:string:"ConnectionWatch"
Agent:string:""
AlertGroup:string:"Gateway"
AlertKey:string:"GATEWAY:Gateway Reader"
Severity:integer:"0"
Summary:string:"A GATEWAY process Gateway Reader running on 
hostname has disconnected as username gateway"
StateChange:utc:"2008-11-10T14:38:33"
FirstOccurrence:utc:"2008-11-10T14:37:55"
LastOccurrence:utc:"2008-11-10T14:37:55"
InternalLast:utc:"2008-11-10T14:37:55"
Poll:integer:"0"
Type:integer:"1"
Tally:integer:"1"
Class:integer:"0"
Grade:integer:"0"
Location:string:""
OwnerUID:integer:"65534"
OwnerGID:integer:"0"
Acknowledged:integer:"0"
Flash:integer:"0"
EventId:string:""
ExpireTime:integer:"0"
ProcessReq:integer:"0"
SuppressEscl:integer:"0"
Customer:string:""
Service:string:""
PhysicalSlot:integer:"0"
PhysicalPort:integer:"0"
PhysicalCard:string:""
TaskList:integer:"0"
NmosSerial:string:""
NmosObjInst:integer:"0"
NmosCauseType:integer:"0"
LocalNodeAlias:string:""
LocalPriObj:string:""
LocalSecObj:string:""
LocalRootObj:string:""
RemoteNodeAlias:string:""
RemotePriObj:string:""
RemoteSecObj:string:""
RemoteRootObj:string:""
X733EventType:integer:"0"
X733ProbableCause:integer:"0"
X733SpecificProb:string:""
X733CorrNotif:string:""
URL:string:""
ExtendedAttr:string:""
ServerName:string:"NCOMS"
ServerSerial:integer:"1841"