Project

Profile

Help

Revision 52505fd1

Added by O'Neil Delpratt about 2 years ago

Saxon/C bug fix to commands

View differences:

latest9.8/hec/command/Query.c
13 13
    #include <windows.h>
14 14
#endif
15 15

  
16
typedef int bool;
17
#define true 1
18
#define false 0
16
#ifndef __cplusplus
17
    #ifndef _BOOL
18
        #include <stdbool.h>
19
        //typedef int bool;
20
        #define true 1
21
        #define false 0
22
    #else
23
        #define true 1
24
        #define false 0
25
    #endif
26
#endif
19 27

  
20 28

  
21 29
char dllname[] =
22
    #ifdef __linux__
23
#ifdef EEC
24
        "/usr/lib/libsaxoneec.so";
25
#elif defined PEC
26
	"/usr/lib/libsaxonpec.so";
27
#else
28
	"/usr/lib/libsaxonhec.so";
29
#endif
30
#ifdef __linux__
31
    #ifdef EEC
32
            "/usr/lib/libsaxoneec.so";
33
    #elif defined PEC
34
	    "/usr/lib/libsaxonpec.so";
30 35
    #else
31
#ifdef EEC
32
        "Saxon-eec.dll";
33
#elif defined PEC
34
	"Saxon-pec.dll";
36
	    "/usr/lib/libsaxonhec.so";
37
    #endif
38
#elif defined __APPLE__
39
    #ifdef EEC
40
            "/usr/local/lib/libsaxoneec.dylib";
41
    #elif defined PEC
42
	    "/usr/local/lib/libsaxonpec.dylib";
43
    #else
44
	    "/usr/local/lib/libsaxonhec.dylib";
45
    #endif
35 46
#else
36
	"Saxon-hec.dll";
37
#endif
47
    #ifdef EEC
48
        "libsaxoneec.dll";
49
    #elif defined PEC
50
	    "libsaxonpec.dll";
51
    #else
52
	    "libsaxonhec.dll";
38 53
    #endif
54
#endif
39 55

  
40 56
//===============================================================================================//
41 57
/*! <code>Environment</code>. This struct captures the jni, JVM and handler to the cross compiled Saxon/C library.
latest9.8/hec/command/Transform.c
12 12
    #include <windows.h>
13 13
#endif
14 14

  
15
typedef int bool;
16
#define true 1
17
#define false 0
15
#ifndef __cplusplus
16
    #ifndef _BOOL
17
        #include <stdbool.h>
18
        //typedef int bool;
19
        #define true 1
20
        #define false 0
21
    #else
22
        #define true 1
23
        #define false 0
24
    #endif
25
#endif
18 26

  
19 27

  
20 28
char dllname[] =
21
   // #ifdef __linux__
22
#ifdef EEC
23
        "/usr/lib/libsaxoneec.so";
24
#elif defined PEC
25
	"/usr/lib/libsaxonpec.so";
29
#ifdef __linux__
30
    #ifdef EEC
31
            "/usr/lib/libsaxoneec.so";
32
    #elif defined PEC
33
	    "/usr/lib/libsaxonpec.so";
34
    #else
35
	    "/usr/lib/libsaxonhec.so";
36
    #endif
37
#elif defined __APPLE__
38
    #ifdef EEC
39
            "/usr/local/lib/libsaxoneec.dylib";
40
    #elif defined PEC
41
	    "/usr/local/lib/libsaxonpec.dylib";
42
    #else
43
	    "/usr/local/lib/libsaxonhec.dylib";
44
    #endif
26 45
#else
27
	"/usr/lib/libsaxonhec.so";
46
    #ifdef EEC
47
        "libsaxoneec.dll";
48
    #elif defined PEC
49
	    "libsaxonpec.dll";
50
    #else
51
	    "libsaxonhec.dll";
52
    #endif
28 53
#endif
29 54
/*    #else
30 55
#ifdef EEC
latest9.8/hec/command/Validate.c
12 12
    #include <windows.h>
13 13
#endif
14 14

  
15
typedef int bool;
16
#define true 1
17
#define false 0
15
#ifndef __cplusplus
16
    #ifndef _BOOL
17
        #include <stdbool.h>
18
        //typedef int bool;
19
        #define true 1
20
        #define false 0
21
    #else
22
        #define true 1
23
        #define false 0
24
    #endif
25
#endif
18 26

  
19 27

  
20 28
char dllname[] =
21
    #ifdef __linux__
22
#ifdef EEC
23
        "/usr/lib/libsaxoneec.so";
24
#elif defined PEC
25
	"/usr/lib/libsaxonpec.so";
26
#else
27
	"/usr/lib/libsaxonhec.so";
28
#endif
29
#ifdef __linux__
30
    #ifdef EEC
31
            "/usr/lib/libsaxoneec.so";
32
    #elif defined PEC
33
	    "/usr/lib/libsaxonpec.so";
29 34
    #else
30
#ifdef EEC
31
        "Saxon-eec.dll";
32
#elif defined PEC
33
	"Saxon-pec.dll";
35
	    "/usr/lib/libsaxonhec.so";
36
    #endif
37
#elif defined __APPLE__
38
    #ifdef EEC
39
            "/usr/local/lib/libsaxoneec.dylib";
40
    #elif defined PEC
41
	    "/usr/local/lib/libsaxonpec.dylib";
42
    #else
43
	    "/usr/local/lib/libsaxonhec.dylib";
44
    #endif
34 45
#else
35
	"Saxon-hec.dll";
36
#endif
37

  
46
    #ifdef EEC
47
        "libsaxoneec.dll";
48
    #elif defined PEC
49
	    "libsaxonpec.dll";
50
    #else
51
	    "libsaxonhec.dll";
52
    #endif
38 53
#endif
39 54
//===============================================================================================//
40 55
/*! <code>Environment</code>. This struct captures the jni, JVM and handler to the cross compiled Saxon/C library.
latest9.8/hec/samples/php/trax/xsl/foo.xslp
1
<?xml version="1.0" encoding="utf-8"?>
2
<package xmlns='http://ns.saxonica.com/xslt/export' xmlns:fn='http://www.w3.org/2005/xpath-functions' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:vv='http://saxon.sf.net/generated-variable' xmlns:java-type='http://saxon.sf.net/java-type' when='2019-06-20T12:23:22.883+01:00' dmk='TGljZW5zb3I9U2F4b25pY2EKTGljZW5zZWU9TydOZWlsIERlbHByYXR0CkNvbXBhbnk9U2F4b25pY2EKRW1haWw9b25laWxAc2F4b25pY2EuY29tCkVkaXRpb249REUKU0FUPXllcwpTQVE9eWVzClNBVj15ZXMKSXNzdWVkPTIwMTgtMDctMDQKU2VyaWVzPU8KU2VyaWFsPU8wMDcwNjIKVXNlcj1QMDAwMQpFdmFsdWF0aW9uPW5vCkV4cGlyYXRpb249bmV2ZXIKVXBncmFkZURheXM9MzY2Ck1haW50ZW5hbmNlRGF5cz0zNjYKClNpZ25hdHVyZT0zMDJDMDIxNDA1RDJEREQ0NjBGQzhFODI0OTEyMkEzQzVBNzZENzRDRDdFMjk2OTcwMjE0NUM5MTQxNjAyNzYzRTlBNjU0Qjc3MkM3NTk3RDg5RTNCQkE5MTAzQg==' id='0' version='20' packageVersion='1' saxonVersion='9.9.1.3' target='EE' targetVersion='1' relocatable='false' implicit='true'>
3
 <co id='0' binds=''>
4
  <globalVariable name='Q{}my-var' type='xs:string' line='3' module='file:/Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/inc1/inc2/inc2.xsl' visibility='PRIVATE'>
5
   <str val='text from my-var in inc2.xsl'/>
6
  </globalVariable>
7
 </co>
8
 <co id='1' binds=''>
9
  <globalParam name='Q{}a-param' type='item()*' line='9' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' visibility='PUBLIC'>
10
   <doc baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='9' base='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' flags='t' text='default param value' validation='preserve'>
11
    <valueOf flags='l'>
12
     <str val='default param value'/>
13
    </valueOf>
14
   </doc>
15
  </globalParam>
16
 </co>
17
 <co id='2' binds='1'>
18
  <globalVariable name='Q{http://saxon.sf.net/generated-variable}gg1018547642' type='xs:string' line='21' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' visibility='PRIVATE'>
19
   <fn baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='21' name='string-join'>
20
    <convert from='xs:anyAtomicType' to='xs:string'>
21
     <data>
22
      <mergeAdj>
23
       <gVarRef name='Q{}a-param' bSlot='0'/>
24
      </mergeAdj>
25
     </data>
26
    </convert>
27
    <str val=' '/>
28
   </fn>
29
  </globalVariable>
30
 </co>
31
 <co id='3' binds='3 2 3'>
32
  <mode onNo='TC' flags='dW' patternSlots='0'>
33
   <templateRule prec='0' prio='-0.5' seq='0' rank='0' minImp='0' slots='0' flags='s' line='13' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
34
    <p.nodeTest role='match' test='document-node()'/>
35
    <sequence role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='14'>
36
     <comment>
37
      <str val='EE 9.9.1.3'/>
38
     </comment>
39
     <nextMatch line='15' flags='t'/>
40
    </sequence>
41
   </templateRule>
42
   <templateRule prec='0' prio='-0.5' seq='2' part='1' rank='0' minImp='0' slots='0' flags='s' line='29' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
43
    <p.nodeTest role='match' test='element()'/>
44
    <copy role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='32' flags='cin'>
45
     <applyT role='content' bSlot='0'>
46
      <union role='select' op='|'>
47
       <union op='|'>
48
        <sequence>
49
         <axis name='attribute' nodeTest='attribute()'/>
50
         <axis name='child' nodeTest='element()'/>
51
        </sequence>
52
        <axis name='child' nodeTest='text()'/>
53
       </union>
54
       <axis name='child' nodeTest='processing-instruction()'/>
55
      </union>
56
     </applyT>
57
    </copy>
58
   </templateRule>
59
   <templateRule prec='0' prio='0.0' seq='1' rank='1' minImp='0' slots='0' flags='s' line='18' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
60
    <p.nodeTest role='match' test='element(Q{http://apache.org/bar}element)'/>
61
    <elem role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='19' name='bar' nsuri=''>
62
     <sequence line='20'>
63
      <elem name='param-val' nsuri='' flags='l'>
64
       <sequence line='21'>
65
        <valueOf flags='l'>
66
         <gVarRef name='Q{http://saxon.sf.net/generated-variable}gg1018547642' bSlot='1'/>
67
        </valueOf>
68
        <valueOf flags='l'>
69
         <str val=', text from my-var in inc2.xsl'/>
70
        </valueOf>
71
       </sequence>
72
      </elem>
73
      <elem line='24' name='data' nsuri='' flags='l'>
74
       <applyT flags='i' bSlot='2'>
75
        <axis role='select' name='child' nodeTest='node()'/>
76
       </applyT>
77
      </elem>
78
     </sequence>
79
    </elem>
80
   </templateRule>
81
   <templateRule prec='0' prio='-0.5' seq='2' rank='0' minImp='0' slots='0' flags='s' line='29' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
82
    <p.nodeTest role='match' test='attribute()'/>
83
    <copy role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='32' flags='cin'>
84
     <applyT role='content' bSlot='0'>
85
      <union role='select' op='|'>
86
       <union op='|'>
87
        <sequence>
88
         <axis name='attribute' nodeTest='attribute()'/>
89
         <axis name='child' nodeTest='element()'/>
90
        </sequence>
91
        <axis name='child' nodeTest='text()'/>
92
       </union>
93
       <axis name='child' nodeTest='processing-instruction()'/>
94
      </union>
95
     </applyT>
96
    </copy>
97
   </templateRule>
98
   <templateRule prec='0' prio='-0.5' seq='2' part='2' rank='0' minImp='0' slots='0' flags='s' line='29' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
99
    <p.nodeTest role='match' test='text()'/>
100
    <copy role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='32' flags='cin'>
101
     <applyT role='content' bSlot='0'>
102
      <union role='select' op='|'>
103
       <union op='|'>
104
        <sequence>
105
         <axis name='attribute' nodeTest='attribute()'/>
106
         <axis name='child' nodeTest='element()'/>
107
        </sequence>
108
        <axis name='child' nodeTest='text()'/>
109
       </union>
110
       <axis name='child' nodeTest='processing-instruction()'/>
111
      </union>
112
     </applyT>
113
    </copy>
114
   </templateRule>
115
   <templateRule prec='0' prio='-0.5' seq='2' part='3' rank='0' minImp='0' slots='0' flags='s' line='29' module='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl'>
116
    <p.nodeTest role='match' test='processing-instruction()'/>
117
    <copy role='action' baseUri='file:///Users/ond1/work/development/svn/archive/opensource/latest9.8/hec/samples/php/trax/xsl/foo.xsl' ns='xsl=~ bar=http://apache.org/bar' line='32' flags='cin'>
118
     <applyT role='content' bSlot='0'>
119
      <union role='select' op='|'>
120
       <union op='|'>
121
        <sequence>
122
         <axis name='attribute' nodeTest='attribute()'/>
123
         <axis name='child' nodeTest='element()'/>
124
        </sequence>
125
        <axis name='child' nodeTest='text()'/>
126
       </union>
127
       <axis name='child' nodeTest='processing-instruction()'/>
128
      </union>
129
     </applyT>
130
    </copy>
131
   </templateRule>
132
  </mode>
133
 </co>
134
 <overridden/>
135
 <output>
136
  <property name='encoding' value='iso-8859-1'/>
137
  <property name='{http://saxon.sf.net/}stylesheet-version' value='20'/>
138
 </output>
139
 <decimalFormat/>
140
</package>
141
<?Σ d664995?>

Also available in: Unified diff