2 // XSLTProcessorFactory.m
5 // Created by Marc Liyanage on Thu Aug 01 2002.
6 // Copyright (c) 2002 __MyCompanyName__. All rights reserved.
9 #import "XSLTProcessorFactory.h"
12 @implementation XSLTProcessorFactory
15 + (XSLTProcessor *)makeProcessorOfType:(int)processorType {
17 if (processorType == PROCESSORTYPE_SABLOTRON) {
18 return [[XSLTProcessorSablotron alloc] init];
19 } else if (processorType == PROCESSORTYPE_LIBXSLT) {
20 return [[XSLTProcessorLibxslt alloc] init];
21 } else if (processorType == PROCESSORTYPE_SAXON) {
22 return [[XSLTProcessorSaxon alloc] init];
23 } else if (processorType == PROCESSORTYPE_XALAN_J) {
24 return [[XSLTProcessorXalan_J alloc] init];
27 NSLog(@"Unknown processor type '%d' passed!", processorType);