more updates for libxml2 2.5.10
[TestXSLT.git] / XSLTProcessorFactory.m
1 //
2 //  XSLTProcessorFactory.m
3 //  TestXSLT
4 //
5 //  Created by Marc Liyanage on Thu Aug 01 2002.
6 //  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
7 //
8
9 #import "XSLTProcessorFactory.h"
10
11
12 @implementation XSLTProcessorFactory
13
14
15 + (XSLTProcessor *)makeProcessorOfType:(int)processorType {
16
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];
25         }
26
27         NSLog(@"Unknown processor type '%d' passed!", processorType);
28         return nil;
29
30 }
31
32
33
34 @end