Project

Profile

Help

Revision 2a9719f6

Added by O'Neil Delpratt almost 6 years ago

Added Saxon/C 1.0.0 files to archive

View differences:

.gitattributes
517 517
latest9.6/hec/jar/9.6.0.9/saxon-c/pej/saxon9pe.jar svn_mime_002dtype=application%2Foctet-stream
518 518
latest9.6/hec/jar/libsaxon.dylib svn_mime_002dtype=application%2Foctet-stream
519 519
latest9.6/hec/jar/mysaxonhe.jar svn_mime_002dtype=application%2Foctet-stream
520
latest9.6/hec/samples/cTests/ORP0301177AA__EE__30954_sellado.xml svn_mime_002dtype=application%2Fxml
521
latest9.6/hec/samples/cTests/ORP0301177AA__EE__30954_sinsello.xml svn_mime_002dtype=application%2Fxml
522
latest9.6/hec/samples/cTests/testXPath svn_mime_002dtype=application%2Fx-executable
523
latest9.6/hec/samples/cTests/testXQuery svn_mime_002dtype=application%2Fx-executable
524
latest9.6/hec/samples/cTests/testXSLT svn_mime_002dtype=application%2Fx-executable
525
latest9.6/hec/samples/cppTests/family-ext.xsd svn_mime_002dtype=application%2Fxml
526
latest9.6/hec/samples/cppTests/family.xsd svn_mime_002dtype=application%2Fxml
527
latest9.6/hec/samples/php/Simple2.out svn_mime_002dtype=application%2Fxml
528
latest9.6/hec/samples/php/a2.out svn_mime_002dtype=application%2Fxml
529
latest9.6/hec/samples/php/b3.out svn_mime_002dtype=application%2Fxml
530
latest9.6/hec/samples/php/c4.out svn_mime_002dtype=application%2Fxml
531
latest9.6/hec/samples/php/doc1.out svn_mime_002dtype=application%2Fxml
532
latest9.6/hec/samples/php/exampleSimple2.out svn_mime_002dtype=application%2Fxml
533
latest9.6/hec/samples/php/query/books.xml svn_mime_002dtype=application%2Fxml
534
latest9.6/hec/samples/php/test.xsl svn_mime_002dtype=application%2Fxml
535
latest9.6/hec/samples/php/trax/Simple2.out svn_mime_002dtype=application%2Fxml
536
latest9.6/hec/samples/php/trax/a2.out svn_mime_002dtype=application%2Fxml
537
latest9.6/hec/samples/php/trax/b3.out svn_mime_002dtype=application%2Fxml
538
latest9.6/hec/samples/php/trax/c4.out svn_mime_002dtype=application%2Fxml
539
latest9.6/hec/samples/php/trax/doc1.out svn_mime_002dtype=application%2Fxml
540
latest9.6/hec/samples/php/trax/exampleSimple2.out svn_mime_002dtype=application%2Fxml
541
latest9.6/hec/samples/php/trax/xml/baz.xml svn_mime_002dtype=application%2Fxml
542
latest9.6/hec/samples/php/trax/xml/cities.xml svn_mime_002dtype=application%2Fxml
543
latest9.6/hec/samples/php/trax/xml/embedded.xml svn_mime_002dtype=application%2Fxml
544
latest9.6/hec/samples/php/trax/xml/foo.xml svn_mime_002dtype=application%2Fxml
545
latest9.6/hec/samples/php/trax/xml/subdir1/foo2.xml svn_mime_002dtype=application%2Fxml
546
latest9.6/hec/samples/php/trax/xml/subdir1/subdir2/foo3.xml svn_mime_002dtype=application%2Fxml
547
latest9.6/hec/samples/php/trax/xml/withentityref.xml svn_mime_002dtype=application%2Fxml
548
latest9.6/hec/samples/php/trax/xsl/foo2.xsl svn_mime_002dtype=application%2Fxml
549
latest9.6/hec/samples/php/trax/xsl/foo3.xsl svn_mime_002dtype=application%2Fxml
550
latest9.6/hec/samples/php/xml/baz.xml svn_mime_002dtype=application%2Fxml
551
latest9.6/hec/samples/php/xml/cities.xml svn_mime_002dtype=application%2Fxml
552
latest9.6/hec/samples/php/xml/embedded.xml svn_mime_002dtype=application%2Fxml
553
latest9.6/hec/samples/php/xml/foo.xml svn_mime_002dtype=application%2Fxml
554
latest9.6/hec/samples/php/xml/subdir1/foo2.xml svn_mime_002dtype=application%2Fxml
555
latest9.6/hec/samples/php/xml/subdir1/subdir2/foo3.xml svn_mime_002dtype=application%2Fxml
556
latest9.6/hec/samples/php/xml/withentityref.xml svn_mime_002dtype=application%2Fxml
557
latest9.6/hec/samples/php/xsl/foo2.xsl svn_mime_002dtype=application%2Fxml
558
latest9.6/hec/samples/php/xsl/foo3.xsl svn_mime_002dtype=application%2Fxml
520 559
latest9.6/hej/net/sf/saxon/option/cpp/SaxonCAPI.java svn_eol_002dstyle=native
521 560
latest9.6/hej/net/sf/saxon/option/cpp/SaxonCException.java svn_eol_002dstyle=native
522 561
latest9.6/hej/net/sf/saxon/option/cpp/SchemaValidatorForCpp.java svn_eol_002dstyle=native
latest9.6/hec/samples/cTests/ORP0301177AA__EE__30954_sellado.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd" version="3.2" serie="EE" folio="30954" fecha="2015-05-05T20:18:20" formaDePago="En una sola exhibición" noCertificado="00001000000300311033" certificado="MIIE3DCCA8SgAwIBAgIUMDAwMDEwMDAwMDAzMDAzMTEwMzMwDQYJKoZIhvcNAQEFBQAwggGKMTgwNgYDVQQDDC9BLkMuIGRlbCBTZXJ2aWNpbyBkZSBBZG1pbmlzdHJhY2nDs24gVHJpYnV0YXJpYTEvMC0GA1UECgwmU2VydmljaW8gZGUgQWRtaW5pc3RyYWNpw7NuIFRyaWJ1dGFyaWExODA2BgNVBAsML0FkbWluaXN0cmFjacOzbiBkZSBTZWd1cmlkYWQgZGUgbGEgSW5mb3JtYWNpw7NuMR8wHQYJKoZIhvcNAQkBFhBhY29kc0BzYXQuZ29iLm14MSYwJAYDVQQJDB1Bdi4gSGlkYWxnbyA3NywgQ29sLiBHdWVycmVybzEOMAwGA1UEEQwFMDYzMDAxCzAJBgNVBAYTAk1YMRkwFwYDVQQIDBBEaXN0cml0byBGZWRlcmFsMRQwEgYDVQQHDAtDdWF1aHTDqW1vYzEVMBMGA1UELRMMU0FUOTcwNzAxTk4zMTUwMwYJKoZIhvcNAQkCDCZSZXNwb25zYWJsZTogQ2xhdWRpYSBDb3ZhcnJ1YmlhcyBPY2hvYTAeFw0xMzA2MTMyMzA2MzVaFw0xNzA2MTMyMzA2MzVaMIIBJzFCMEAGA1UEAxM5T1BFUkFET1JBIFJFU1RBVVJBTlRFIFBBTE9NQVIgREUgTE9TIFBPQlJFUyBTIERFIFJMIERFIENWMUIwQAYDVQQpEzlPUEVSQURPUkEgUkVTVEFVUkFOVEUgUEFMT01BUiBERSBMT1MgUE9CUkVTIFMgREUgUkwgREUgQ1YxQjBABgNVBAoTOU9QRVJBRE9SQSBSRVNUQVVSQU5URSBQQUxPTUFSIERFIExPUyBQT0JSRVMgUyBERSBSTCBERSBDVjElMCMGA1UELRMcT1JQMDMwMTE3N0FBIC8gR09HRDg2MDQyMlRXMTEeMBwGA1UEBRMVIC8gR09HRDg2MDQyMkhTTE1OVjAxMRIwEAYDVQQLEwlPcGVyYWRvcmEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALI3lXbie/r2xrGwA3OkQXR+bQ8Pjxp0frSmxolQkdqJdihU/Z9B2xOtnCg2P5AszvyIW2cPV8iqE/2JBuE+nzFVY3yIVlTybEQJoUSJgSXI2ovuY3pvHq9NBEokuSx5F9A3HR9Z6EA7yVRnntsX9Kf7WdlfjzA9OSZVGw1mHd4lAgMBAAGjHTAbMAwGA1UdEwEB/wQCMAAwCwYDVR0PBAQDAgbAMA0GCSqGSIb3DQEBBQUAA4IBAQCRPsDvknRNCBfPM9lOkS/NYoi95dTHYnt+OGm3ZbVH/d88G1bfx9N2xkS8xnvyhUUgz+ZuIlZvbVYp4sgljRCSQOCMXbcCMFv1C64XzsmpmcUupxDILWLAn2nfIV0gWrRNQxKKy65URtFyQquiG5UFu4jMEC5VeQPLgPYwndcmYDSqrU3UPHTEdXhS5Ssvv5verbRItEHut61w1V/8NIFDF4th+QzvMCkglNw/VwWb+gAaiDzqYgIwlNeVFme7aw4zQZVb2dIpX96qljP/xzgeVovoZEirH3dkHYGh2ztL+qnyg1aXvIjZh0zztiGsLblXapKqoFA4glgrnvRE2gPw" condicionesDePago="Contado" subTotal="194.83" total="226.00" tipoDeComprobante="ingreso" metodoDePago="Efectivo" LugarExpedicion="CULIACAN" sello="gD1lcxnZLNxGnrx1VHZdfi9O5tcJcMgKUuY35vOUwWNhf90pTGttadZmz+AWquFsbBTNIDw/d0Gk7U10dliBenlYji3/1ELAYniTHqGYyDTv8h3f0U87cCk8S72sYM/X0wAgKQ2wdBotRFGx+JXty9TvR37rSN/ZQsHP5FW+kLk=">
3
  <cfdi:Emisor rfc="ORP0301177AA" nombre="OPERADORA RESTAURANTE PALOMAR DE LOS POBRES S. DE R.L. DE C.V">
4
    <cfdi:DomicilioFiscal calle="Presa las truchas" noExterior="980" noInterior="2" colonia="Las Quintas" municipio="Culiacán" estado="Sinaloa" pais="México" codigoPostal="80060"/>
5
    <cfdi:ExpedidoEn calle="LAZARO CARDENAS" noExterior="660" colonia="JORGE ALMADA" municipio="CULIACAN" codigoPostal="80200" pais="Mexico"/>
6
    <cfdi:RegimenFiscal Regimen="Regimen General de Ley de Personas Morales"/>
7
  </cfdi:Emisor>
8
  <cfdi:Receptor rfc="CATL8411188S4" nombre="Jose Lauro Campos Tapia">
9
    <cfdi:Domicilio calle="Galileo" noExterior="833" colonia="Villa Universidad" localidad="Culiacan" municipio="Culiacan" estado="Sinaloa" pais="Mexico" codigoPostal="80010"/>
10
  </cfdi:Receptor>
11
  <cfdi:Conceptos>
12
    <cfdi:Concepto cantidad="1" unidad="No aplica" noIdentificacion="No aplica" descripcion="Consumo" valorUnitario="194.83" importe="194.83"/>
13
  </cfdi:Conceptos>
14
  <cfdi:Impuestos totalImpuestosTrasladados="31.17">
15
    <cfdi:Traslados>
16
      <cfdi:Traslado impuesto="IVA" tasa="16.00" importe="31.17"/>
17
    </cfdi:Traslados>
18
  </cfdi:Impuestos>
19
  <cfdi:Complemento/>
20
</cfdi:Comprobante>
latest9.6/hec/samples/cTests/ORP0301177AA__EE__30954_sinsello.xml
1
<?xml version="1.0" encoding="utf-8"?>
2
<cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv32.xsd" version="3.2" serie="EE" folio="30954" fecha="2015-05-05T20:18:20" formaDePago="En una sola exhibición" noCertificado="00001000000300311033" certificado="MIIE3DCCA8SgAwIBAgIUMDAwMDEwMDAwMDAzMDAzMTEwMzMwDQYJKoZIhvcNAQEFBQAwggGKMTgwNgYDVQQDDC9BLkMuIGRlbCBTZXJ2aWNpbyBkZSBBZG1pbmlzdHJhY2nDs24gVHJpYnV0YXJpYTEvMC0GA1UECgwmU2VydmljaW8gZGUgQWRtaW5pc3RyYWNpw7NuIFRyaWJ1dGFyaWExODA2BgNVBAsML0FkbWluaXN0cmFjacOzbiBkZSBTZWd1cmlkYWQgZGUgbGEgSW5mb3JtYWNpw7NuMR8wHQYJKoZIhvcNAQkBFhBhY29kc0BzYXQuZ29iLm14MSYwJAYDVQQJDB1Bdi4gSGlkYWxnbyA3NywgQ29sLiBHdWVycmVybzEOMAwGA1UEEQwFMDYzMDAxCzAJBgNVBAYTAk1YMRkwFwYDVQQIDBBEaXN0cml0byBGZWRlcmFsMRQwEgYDVQQHDAtDdWF1aHTDqW1vYzEVMBMGA1UELRMMU0FUOTcwNzAxTk4zMTUwMwYJKoZIhvcNAQkCDCZSZXNwb25zYWJsZTogQ2xhdWRpYSBDb3ZhcnJ1YmlhcyBPY2hvYTAeFw0xMzA2MTMyMzA2MzVaFw0xNzA2MTMyMzA2MzVaMIIBJzFCMEAGA1UEAxM5T1BFUkFET1JBIFJFU1RBVVJBTlRFIFBBTE9NQVIgREUgTE9TIFBPQlJFUyBTIERFIFJMIERFIENWMUIwQAYDVQQpEzlPUEVSQURPUkEgUkVTVEFVUkFOVEUgUEFMT01BUiBERSBMT1MgUE9CUkVTIFMgREUgUkwgREUgQ1YxQjBABgNVBAoTOU9QRVJBRE9SQSBSRVNUQVVSQU5URSBQQUxPTUFSIERFIExPUyBQT0JSRVMgUyBERSBSTCBERSBDVjElMCMGA1UELRMcT1JQMDMwMTE3N0FBIC8gR09HRDg2MDQyMlRXMTEeMBwGA1UEBRMVIC8gR09HRDg2MDQyMkhTTE1OVjAxMRIwEAYDVQQLEwlPcGVyYWRvcmEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALI3lXbie/r2xrGwA3OkQXR+bQ8Pjxp0frSmxolQkdqJdihU/Z9B2xOtnCg2P5AszvyIW2cPV8iqE/2JBuE+nzFVY3yIVlTybEQJoUSJgSXI2ovuY3pvHq9NBEokuSx5F9A3HR9Z6EA7yVRnntsX9Kf7WdlfjzA9OSZVGw1mHd4lAgMBAAGjHTAbMAwGA1UdEwEB/wQCMAAwCwYDVR0PBAQDAgbAMA0GCSqGSIb3DQEBBQUAA4IBAQCRPsDvknRNCBfPM9lOkS/NYoi95dTHYnt+OGm3ZbVH/d88G1bfx9N2xkS8xnvyhUUgz+ZuIlZvbVYp4sgljRCSQOCMXbcCMFv1C64XzsmpmcUupxDILWLAn2nfIV0gWrRNQxKKy65URtFyQquiG5UFu4jMEC5VeQPLgPYwndcmYDSqrU3UPHTEdXhS5Ssvv5verbRItEHut61w1V/8NIFDF4th+QzvMCkglNw/VwWb+gAaiDzqYgIwlNeVFme7aw4zQZVb2dIpX96qljP/xzgeVovoZEirH3dkHYGh2ztL+qnyg1aXvIjZh0zztiGsLblXapKqoFA4glgrnvRE2gPw" condicionesDePago="Contado" subTotal="194.83" total="226.00" tipoDeComprobante="ingreso" metodoDePago="Efectivo" LugarExpedicion="CULIACAN">
3
  <cfdi:Emisor rfc="ORP0301177AA" nombre="OPERADORA RESTAURANTE PALOMAR DE LOS POBRES S. DE R.L. DE C.V">
4
    <cfdi:DomicilioFiscal calle="Presa las truchas" noExterior="980" noInterior="2" colonia="Las Quintas" municipio="Culiacán" estado="Sinaloa" pais="México" codigoPostal="80060"/>
5
    <cfdi:ExpedidoEn calle="LAZARO CARDENAS" noExterior="660" colonia="JORGE ALMADA" municipio="CULIACAN" codigoPostal="80200" pais="Mexico"/>
6
    <cfdi:RegimenFiscal Regimen="Regimen General de Ley de Personas Morales"/>
7
  </cfdi:Emisor>
8
  <cfdi:Receptor rfc="CATL8411188S4" nombre="Jose Lauro Campos Tapia">
9
    <cfdi:Domicilio calle="Galileo" noExterior="833" colonia="Villa Universidad" localidad="Culiacan" municipio="Culiacan" estado="Sinaloa" pais="Mexico" codigoPostal="80010"/>
10
  </cfdi:Receptor>
11
  <cfdi:Conceptos>
12
    <cfdi:Concepto cantidad="1" unidad="No aplica" noIdentificacion="No aplica" descripcion="Consumo" valorUnitario="194.83" importe="194.83"/>
13
  </cfdi:Conceptos>
14
  <cfdi:Impuestos totalImpuestosTrasladados="31.17">
15
    <cfdi:Traslados>
16
      <cfdi:Traslado impuesto="IVA" tasa="16.00" importe="31.17"/>
17
    </cfdi:Traslados>
18
  </cfdi:Impuestos>
19
  <cfdi:Complemento/>
20
</cfdi:Comprobante>
latest9.6/hec/samples/cTests/build.sh
1
#!/bin/sh
2

  
3
#jdkdir=/usr/lib/jvm/java-7-oracle/include
4

  
5
# $jdkdir/bin/javac MyClassInDll.java
6

  
7
#jc =p MyDll.prj
8
#rm -rf MyDll_jetpdb
9

  
10
gcc -m32 -I$jdkdir/include -I$jdkdir/include/linux -I /System/Library/Frameworks/JavaVM.framework/Headers ../../Saxon.C.API/SaxonCGlue.c ../../Saxon.C.API/SaxonCProcessor.c ../../Saxon.C.API/SaxonCXPath.c  testXSLT.c -o testXSLT -ldl -lc -lsaxon $1
11

  
12
gcc -m32 -I$jdkdir/include -I$jdkdir/include/linux -I /System/Library/Frameworks/JavaVM.framework/Headers ../../Saxon.C.API/SaxonCGlue.c ../../Saxon.C.API/SaxonCProcessor.c  testXQuery.c -o testXQuery -ldl -lc -lsaxon $1
13

  
14
gcc -m32 -I$jdkdir/include -I$jdkdir/include/linux -I /System/Library/Frameworks/JavaVM.framework/Headers ../../Saxon.C.API/SaxonCGlue.c ../../Saxon.C.API/SaxonCProcessor.c ../../Saxon.C.API/SaxonCXPath.c testXPath.c -o testXPath -ldl -lc -lsaxon $1
15

  
latest9.6/hec/samples/cTests/campos.xsl
1
<!--<?xml version="1.0" encoding="UTF-8"?>-->
2
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:ecc="http://www.sat.gob.mx/ecc" xmlns:psgecfd="http://www.sat.gob.mx/psgecfd" xmlns:donat="http://www.sat.gob.mx/donat" xmlns:divisas="http://www.sat.gob.mx/divisas" xmlns:detallista="http://www.sat.gob.mx/detallista" xmlns:ecb="http://www.sat.gob.mx/ecb" xmlns:implocal="http://www.sat.gob.mx/implocal" xmlns:terceros="http://www.sat.gob.mx/terceros" xmlns:iedu="http://www.sat.gob.mx/iedu" xmlns:ventavehiculos="http://www.sat.gob.mx/ventavehiculos" xmlns:pfic="http://www.sat.gob.mx/pfic" xmlns:tpe="http://www.sat.gob.mx/TuristaPasajeroExtranjero" xmlns:leyendasFisc="http://www.sat.gob.mx/leyendasFiscales" xmlns:spei="http://www.sat.gob.mx/spei" xmlns:nomina="http://www.sat.gob.mx/nomina" xmlns:registrofiscal="http://www.sat.gob.mx/registrofiscal" xmlns:pagoenespecie="http://www.sat.gob.mx/pagoenespecie" xmlns:consumodecombustibles="http://www.sat.gob.mx/consumodecombustibles" xmlns:valesdedespensa="http://www.sat.gob.mx/valesdedespensa" xmlns:aerolineas="http://www.sat.gob.mx/aerolineas" xmlns:notariospublicos="http://www.sat.gob.mx/notariospublicos" xmlns:vehiculousado="http://www.sat.gob.mx/vehiculousado" xmlns:servicioparcial="http://www.sat.gob.mx/servicioparcialconstruccion">
3

  
4

  
5

  
6
  <!-- Integración de complemento Nomina 03-05-2013-->
7

  
8
  <!-- Integración de complemento CFDI Registro Fiscal 27-11-2013-->
9

  
10
  <!-- Integración de complemento Pago en Especie 18-12-2013-->
11

  
12
  <!-- Integración de complemento Consumo de combustible 05-02-2014-->
13

  
14
  <!-- Integración de complemento Vales de despensa 05-02-2014-->
15

  
16
  <!-- Integración de complemento aerolineas 07-02-2014-->
17

  
18
  <!-- Integración de complemento notarios publicos 25-03-2014-->
19

  
20
  <!-- Integración de complemento vehiculo usado03-10-2014-->
21

  
22
  <!-- Integración de complemento Servicio Parcial de Contruccion 09-04-2015-->
23

  
24

  
25

  
26
  <!-- Con el siguiente método se establece que la salida deberá ser en texto -->
27

  
28
  <xsl:output method="text" version="1.0" encoding="UTF-8" indent="no"/>
29

  
30
  <!--
31

  
32
		En esta sección se define la inclusión de las plantillas de utilerías para colapsar espacios
33

  
34
	-->
35

  
36
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/2/cadenaoriginal_2_0/utilerias.xslt"/>
37

  
38
  <!-- 
39

  
40
		En esta sección se define la inclusión de las demás plantillas de transformación para 
41

  
42
		la generación de las cadenas originales de los complementos fiscales 
43

  
44
	-->
45

  
46
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/ecc/ecc.xslt"/>
47

  
48
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/psgecfd/psgecfd.xslt"/>
49

  
50
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/donat/donat11.xslt"/>
51

  
52
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/divisas/divisas.xslt"/>
53

  
54
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/ecb/ecb.xslt"/>
55

  
56
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/detallista/detallista.xslt"/>
57

  
58
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/implocal/implocal.xslt"/>
59

  
60
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/terceros/terceros11.xslt"/>
61

  
62
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/iedu/iedu.xslt"/>
63

  
64
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/ventavehiculos/ventavehiculos11.xslt"/>
65

  
66
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/pfic/pfic.xslt"/>
67

  
68
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/TuristaPasajeroExtranjero/TuristaPasajeroExtranjero.xslt"/>
69

  
70
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/leyendasFiscales/leyendasFisc.xslt"/>
71

  
72
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/spei/spei.xslt"/>
73

  
74
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/nomina/nomina11.xslt"/>
75

  
76
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/cfdiregistrofiscal/cfdiregistrofiscal.xslt"/>
77

  
78
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/pagoenespecie/pagoenespecie.xslt"/>
79

  
80
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/consumodecombustibles/consumodecombustibles.xslt"/>
81

  
82
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/valesdedespensa/valesdedespensa.xslt"/>
83

  
84
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/aerolineas/aerolineas.xslt"/>
85

  
86
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/notariospublicos/notariospublicos.xslt"/>
87

  
88
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/vehiculousado/vehiculousado.xslt"/>
89

  
90
  <xsl:include href="http://www.sat.gob.mx/sitio_internet/cfd/servicioparcialconstruccion/servicioparcialconstruccion.xslt"/>
91

  
92

  
93

  
94
  <!-- Aquí iniciamos el procesamiento de la cadena original con su | inicial y el terminador || -->
95

  
96
  <xsl:template match="/">|<xsl:apply-templates select="/cfdi:Comprobante"/>||</xsl:template>
97

  
98
  <!--  Aquí iniciamos el procesamiento de los datos incluidos en el comprobante -->
99

  
100
  <xsl:template match="cfdi:Comprobante">
101

  
102
    <!-- Iniciamos el tratamiento de los atributos de comprobante -->
103

  
104
    <xsl:call-template name="Requerido">
105

  
106
      <xsl:with-param name="valor" select="./@version"/>
107

  
108
    </xsl:call-template>
109

  
110
    <xsl:call-template name="Requerido">
111

  
112
      <xsl:with-param name="valor" select="./@fecha"/>
113

  
114
    </xsl:call-template>
115

  
116
    <xsl:call-template name="Requerido">
117

  
118
      <xsl:with-param name="valor" select="./@tipoDeComprobante"/>
119

  
120
    </xsl:call-template>
121

  
122
    <xsl:call-template name="Requerido">
123

  
124
      <xsl:with-param name="valor" select="./@formaDePago"/>
125

  
126
    </xsl:call-template>
127

  
128
    <xsl:call-template name="Opcional">
129

  
130
      <xsl:with-param name="valor" select="./@condicionesDePago"/>
131

  
132
    </xsl:call-template>
133

  
134
    <xsl:call-template name="Requerido">
135

  
136
      <xsl:with-param name="valor" select="./@subTotal"/>
137

  
138
    </xsl:call-template>
139

  
140
    <xsl:call-template name="Opcional">
141

  
142
      <xsl:with-param name="valor" select="./@descuento"/>
143

  
144
    </xsl:call-template>
145

  
146
    <xsl:call-template name="Opcional">
147

  
148
      <xsl:with-param name="valor" select="./@TipoCambio"/>
149

  
150
    </xsl:call-template>
151

  
152
    <xsl:call-template name="Opcional">
153

  
154
      <xsl:with-param name="valor" select="./@Moneda"/>
155

  
156
    </xsl:call-template>
157

  
158
    <xsl:call-template name="Requerido">
159

  
160
      <xsl:with-param name="valor" select="./@total"/>
161

  
162
    </xsl:call-template>
163

  
164
    <xsl:call-template name="Requerido">
165

  
166
      <xsl:with-param name="valor" select="./@metodoDePago"/>
167

  
168
    </xsl:call-template>
169

  
170
    <xsl:call-template name="Requerido">
171

  
172
      <xsl:with-param name="valor" select="./@LugarExpedicion"/>
173

  
174
    </xsl:call-template>
175

  
176
    <xsl:call-template name="Opcional">
177

  
178
      <xsl:with-param name="valor" select="./@NumCtaPago"/>
179

  
180
    </xsl:call-template>
181

  
182
    <xsl:call-template name="Opcional">
183

  
184
      <xsl:with-param name="valor" select="./@FolioFiscalOrig"/>
185

  
186
    </xsl:call-template>
187

  
188
    <xsl:call-template name="Opcional">
189

  
190
      <xsl:with-param name="valor" select="./@SerieFolioFiscalOrig"/>
191

  
192
    </xsl:call-template>
193

  
194
    <xsl:call-template name="Opcional">
195

  
196
      <xsl:with-param name="valor" select="./@FechaFolioFiscalOrig"/>
197

  
198
    </xsl:call-template>
199

  
200
    <xsl:call-template name="Opcional">
201

  
202
      <xsl:with-param name="valor" select="./@MontoFolioFiscalOrig"/>
203

  
204
    </xsl:call-template>
205

  
206
    <!--
207

  
208
			Llamadas para procesar al los sub nodos del comprobante
209

  
210
		-->
211

  
212
    <xsl:apply-templates select="./cfdi:Emisor"/>
213

  
214
    <xsl:apply-templates select="./cfdi:Receptor"/>
215

  
216
    <xsl:apply-templates select="./cfdi:Conceptos"/>
217

  
218
    <xsl:apply-templates select="./cfdi:Impuestos"/>
219

  
220
    <xsl:apply-templates select="./cfdi:Complemento"/>
221

  
222
  </xsl:template>
223

  
224
  <!-- Manejador de nodos tipo Emisor -->
225

  
226
  <xsl:template match="cfdi:Emisor">
227

  
228
    <!-- Iniciamos el tratamiento de los atributos del Emisor -->
229

  
230
    <xsl:call-template name="Requerido">
231

  
232
      <xsl:with-param name="valor" select="./@rfc"/>
233

  
234
    </xsl:call-template>
235

  
236
    <xsl:call-template name="Opcional">
237

  
238
      <xsl:with-param name="valor" select="./@nombre"/>
239

  
240
    </xsl:call-template>
241

  
242
    <!--
243

  
244
			Llamadas para procesar al los sub nodos del comprobante
245

  
246
		-->
247

  
248
    <xsl:apply-templates select="./cfdi:DomicilioFiscal"/>
249

  
250
    <xsl:if test="./cfdi:ExpedidoEn">
251

  
252
      <xsl:call-template name="Domicilio">
253

  
254
        <xsl:with-param name="Nodo" select="./cfdi:ExpedidoEn"/>
255

  
256
      </xsl:call-template>
257

  
258
    </xsl:if>
259

  
260
    <xsl:for-each select="./cfdi:RegimenFiscal">
261

  
262
      <xsl:call-template name="Requerido">
263

  
264
        <xsl:with-param name="valor" select="./@Regimen"/>
265

  
266
      </xsl:call-template>
267

  
268
    </xsl:for-each>
269

  
270
  </xsl:template>
271

  
272
  <!-- Manejador de nodos tipo Receptor -->
273

  
274
  <xsl:template match="cfdi:Receptor">
275

  
276
    <!-- Iniciamos el tratamiento de los atributos del Receptor -->
277

  
278
    <xsl:call-template name="Requerido">
279

  
280
      <xsl:with-param name="valor" select="./@rfc"/>
281

  
282
    </xsl:call-template>
283

  
284
    <xsl:call-template name="Opcional">
285

  
286
      <xsl:with-param name="valor" select="./@nombre"/>
287

  
288
    </xsl:call-template>
289

  
290
    <!--
291

  
292
			Llamadas para procesar al los sub nodos del Receptor
293

  
294
		-->
295

  
296
    <xsl:if test="./cfdi:Domicilio">
297

  
298
      <xsl:call-template name="Domicilio">
299

  
300
        <xsl:with-param name="Nodo" select="./cfdi:Domicilio"/>
301

  
302
      </xsl:call-template>
303

  
304
    </xsl:if>
305

  
306
  </xsl:template>
307

  
308
  <!-- Manejador de nodos tipo Conceptos -->
309

  
310
  <xsl:template match="cfdi:Conceptos">
311

  
312
    <!-- Llamada para procesar los distintos nodos tipo Concepto -->
313

  
314
    <xsl:for-each select="./cfdi:Concepto">
315

  
316
      <xsl:apply-templates select="."/>
317

  
318
    </xsl:for-each>
319

  
320
  </xsl:template>
321

  
322
  <!-- Manejador de nodos tipo Impuestos -->
323

  
324
  <xsl:template match="cfdi:Impuestos">
325

  
326
    <xsl:for-each select="./cfdi:Retenciones/cfdi:Retencion">
327

  
328
      <xsl:apply-templates select="."/>
329

  
330
    </xsl:for-each>
331

  
332
    <xsl:call-template name="Opcional">
333

  
334
      <xsl:with-param name="valor" select="./@totalImpuestosRetenidos"/>
335

  
336
    </xsl:call-template>
337

  
338
    <xsl:for-each select="./cfdi:Traslados/cfdi:Traslado">
339

  
340
      <xsl:apply-templates select="."/>
341

  
342
    </xsl:for-each>
343

  
344
    <xsl:call-template name="Opcional">
345

  
346
      <xsl:with-param name="valor" select="./@totalImpuestosTrasladados"/>
347

  
348
    </xsl:call-template>
349

  
350
  </xsl:template>
351

  
352
  <!-- Manejador de nodos tipo Retencion -->
353

  
354
  <xsl:template match="cfdi:Retencion">
355

  
356
    <xsl:call-template name="Requerido">
357

  
358
      <xsl:with-param name="valor" select="./@impuesto"/>
359

  
360
    </xsl:call-template>
361

  
362
    <xsl:call-template name="Requerido">
363

  
364
      <xsl:with-param name="valor" select="./@importe"/>
365

  
366
    </xsl:call-template>
367

  
368
  </xsl:template>
369

  
370
  <!-- Manejador de nodos tipo Traslado -->
371

  
372
  <xsl:template match="cfdi:Traslado">
373

  
374
    <xsl:call-template name="Requerido">
375

  
376
      <xsl:with-param name="valor" select="./@impuesto"/>
377

  
378
    </xsl:call-template>
379

  
380
    <xsl:call-template name="Requerido">
381

  
382
      <xsl:with-param name="valor" select="./@tasa"/>
383

  
384
    </xsl:call-template>
385

  
386
    <xsl:call-template name="Requerido">
387

  
388
      <xsl:with-param name="valor" select="./@importe"/>
389

  
390
    </xsl:call-template>
391

  
392
  </xsl:template>
393

  
394
  <!-- Manejador de nodos tipo Complemento -->
395

  
396
  <xsl:template match="cfdi:Complemento">
397

  
398
    <xsl:for-each select="./*">
399

  
400
      <xsl:apply-templates select="."/>
401

  
402
    </xsl:for-each>
403

  
404
  </xsl:template>
405

  
406
  <!--
407

  
408
		Manejador de nodos tipo Concepto
409

  
410
	-->
411

  
412
  <xsl:template match="cfdi:Concepto">
413

  
414
    <!-- Iniciamos el tratamiento de los atributos del Concepto -->
415

  
416
    <xsl:call-template name="Requerido">
417

  
418
      <xsl:with-param name="valor" select="./@cantidad"/>
419

  
420
    </xsl:call-template>
421

  
422
    <xsl:call-template name="Requerido">
423

  
424
      <xsl:with-param name="valor" select="./@unidad"/>
425

  
426
    </xsl:call-template>
427

  
428
    <xsl:call-template name="Opcional">
429

  
430
      <xsl:with-param name="valor" select="./@noIdentificacion"/>
431

  
432
    </xsl:call-template>
433

  
434
    <xsl:call-template name="Requerido">
435

  
436
      <xsl:with-param name="valor" select="./@descripcion"/>
437

  
438
    </xsl:call-template>
439

  
440
    <xsl:call-template name="Requerido">
441

  
442
      <xsl:with-param name="valor" select="./@valorUnitario"/>
443

  
444
    </xsl:call-template>
445

  
446
    <xsl:call-template name="Requerido">
447

  
448
      <xsl:with-param name="valor" select="./@importe"/>
449

  
450
    </xsl:call-template>
451

  
452
    <!--
453

  
454
			Manejo de los distintos sub nodos de información aduanera de forma indistinta 
455

  
456
			a su grado de dependencia
457

  
458
		-->
459

  
460
    <xsl:for-each select=".//cfdi:InformacionAduanera">
461

  
462
      <xsl:apply-templates select="."/>
463

  
464
    </xsl:for-each>
465

  
466
    <!-- Llamada al manejador de nodos de Cuenta Predial en caso de existir -->
467

  
468
    <xsl:if test="./cfdi:CuentaPredial">
469

  
470
      <xsl:apply-templates select="./cfdi:CuentaPredial"/>
471

  
472
    </xsl:if>
473

  
474
    <!-- Llamada al manejador de nodos de ComplementoConcepto en caso de existir -->
475

  
476
    <xsl:if test="./cfdi:ComplementoConcepto">
477

  
478
      <xsl:apply-templates select="./cfdi:ComplementoConcepto"/>
479

  
480
    </xsl:if>
481

  
482
  </xsl:template>
483

  
484
  <!-- Manejador de nodos tipo Información Aduanera -->
485

  
486
  <xsl:template match="cfdi:InformacionAduanera">
487

  
488
    <!-- Manejo de los atributos de la información aduanera -->
489

  
490
    <xsl:call-template name="Requerido">
491

  
492
      <xsl:with-param name="valor" select="./@numero"/>
493

  
494
    </xsl:call-template>
495

  
496
    <xsl:call-template name="Requerido">
497

  
498
      <xsl:with-param name="valor" select="./@fecha"/>
499

  
500
    </xsl:call-template>
501

  
502
    <xsl:call-template name="Opcional">
503

  
504
      <xsl:with-param name="valor" select="./@aduana"/>
505

  
506
    </xsl:call-template>
507

  
508
  </xsl:template>
509

  
510
  <!-- Manejador de nodos tipo Información CuentaPredial -->
511

  
512
  <xsl:template match="cfdi:CuentaPredial">
513

  
514
    <xsl:call-template name="Requerido">
515

  
516
      <xsl:with-param name="valor" select="./@numero"/>
517

  
518
    </xsl:call-template>
519

  
520
  </xsl:template>
521

  
522
  <!-- Manejador de nodos tipo ComplementoConcepto -->
523

  
524
  <xsl:template match="cfdi:ComplementoConcepto">
525

  
526
    <xsl:for-each select="./*">
527

  
528
      <xsl:apply-templates select="."/>
529

  
530
    </xsl:for-each>
531

  
532
  </xsl:template>
533

  
534
  <!-- Manejador de nodos tipo Domicilio fiscal -->
535

  
536
  <xsl:template match="cfdi:DomicilioFiscal">
537

  
538
    <!-- Iniciamos el tratamiento de los atributos del Domicilio Fiscal -->
539

  
540
    <xsl:call-template name="Requerido">
541

  
542
      <xsl:with-param name="valor" select="./@calle"/>
543

  
544
    </xsl:call-template>
545

  
546
    <xsl:call-template name="Opcional">
547

  
548
      <xsl:with-param name="valor" select="./@noExterior"/>
549

  
550
    </xsl:call-template>
551

  
552
    <xsl:call-template name="Opcional">
553

  
554
      <xsl:with-param name="valor" select="./@noInterior"/>
555

  
556
    </xsl:call-template>
557

  
558
    <xsl:call-template name="Opcional">
559

  
560
      <xsl:with-param name="valor" select="./@colonia"/>
561

  
562
    </xsl:call-template>
563

  
564
    <xsl:call-template name="Opcional">
565

  
566
      <xsl:with-param name="valor" select="./@localidad"/>
567

  
568
    </xsl:call-template>
569

  
570
    <xsl:call-template name="Opcional">
571

  
572
      <xsl:with-param name="valor" select="./@referencia"/>
573

  
574
    </xsl:call-template>
575

  
576
    <xsl:call-template name="Requerido">
577

  
578
      <xsl:with-param name="valor" select="./@municipio"/>
579

  
580
    </xsl:call-template>
581

  
582
    <xsl:call-template name="Requerido">
583

  
584
      <xsl:with-param name="valor" select="./@estado"/>
585

  
586
    </xsl:call-template>
587

  
588
    <xsl:call-template name="Requerido">
589

  
590
      <xsl:with-param name="valor" select="./@pais"/>
591

  
592
    </xsl:call-template>
593

  
594
    <xsl:call-template name="Requerido">
595

  
596
      <xsl:with-param name="valor" select="./@codigoPostal"/>
597

  
598
    </xsl:call-template>
599

  
600
  </xsl:template>
601

  
602
  <!-- Manejador de nodos tipo Domicilio -->
603

  
604
  <xsl:template name="Domicilio">
605

  
606
    <xsl:param name="Nodo"/>
607

  
608
    <!-- Iniciamos el tratamiento de los atributos del Domicilio  -->
609

  
610
    <xsl:call-template name="Opcional">
611

  
612
      <xsl:with-param name="valor" select="$Nodo/@calle"/>
613

  
614
    </xsl:call-template>
615

  
616
    <xsl:call-template name="Opcional">
617

  
618
      <xsl:with-param name="valor" select="$Nodo/@noExterior"/>
619

  
620
    </xsl:call-template>
621

  
622
    <xsl:call-template name="Opcional">
623

  
624
      <xsl:with-param name="valor" select="$Nodo/@noInterior"/>
625

  
626
    </xsl:call-template>
627

  
628
    <xsl:call-template name="Opcional">
629

  
630
      <xsl:with-param name="valor" select="$Nodo/@colonia"/>
631

  
632
    </xsl:call-template>
633

  
634
    <xsl:call-template name="Opcional">
635

  
636
      <xsl:with-param name="valor" select="$Nodo/@localidad"/>
637

  
638
    </xsl:call-template>
639

  
640
    <xsl:call-template name="Opcional">
641

  
642
      <xsl:with-param name="valor" select="$Nodo/@referencia"/>
643

  
644
    </xsl:call-template>
645

  
646
    <xsl:call-template name="Opcional">
647

  
648
      <xsl:with-param name="valor" select="$Nodo/@municipio"/>
649

  
650
    </xsl:call-template>
651

  
652
    <xsl:call-template name="Opcional">
653

  
654
      <xsl:with-param name="valor" select="$Nodo/@estado"/>
655

  
656
    </xsl:call-template>
657

  
658
    <xsl:call-template name="Requerido">
659

  
660
      <xsl:with-param name="valor" select="$Nodo/@pais"/>
661

  
662
    </xsl:call-template>
663

  
664
    <xsl:call-template name="Opcional">
665

  
666
      <xsl:with-param name="valor" select="$Nodo/@codigoPostal"/>
667

  
668
    </xsl:call-template>
669

  
670
  </xsl:template>
671

  
672
</xsl:stylesheet>
latest9.6/hec/samples/cTests/cat.xml
1
<out>
2
<person>text1</person>
3
<person>text2</person>
4
<person>text3</person>
5
</out>
latest9.6/hec/samples/cTests/test.xsl
1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
     version="2.0">
3
<!--<xsl:import-schema schema-location="schema_1.xsd" />-->
4
<xsl:param name="numParam" select="2" />
5
	<xsl:output method="xml" indent="yes" />
6

  
7
  <xsl:template match="*">
8
	<output>
9
	<!--<xsl:value-of select="normalize-unicode('Eisbär', 'NFKD')" />-->
10
    <xsl:for-each select="person" >
11
	<out><xsl:value-of select="."/></out>
12
    </xsl:for-each>
13
      <out><xsl:value-of select="$numParam*2"/></out>
14
    </output>
15
  </xsl:template>
16

  
17
</xsl:stylesheet>
latest9.6/hec/samples/cTests/testXPath.c
1
#include "../../Saxon.C.API/SaxonCXPath.h"
2

  
3

  
4
int main()
5
{
6
    HANDLE myDllHandle;
7
    //JNIEnv *(environ.env);
8
    //JavaVM *jvm;
9
    jclass  myClassInDll;
10
    int cap = 10;
11
    sxnc_parameter * parameters; /*!< array of paramaters used for the transformation as (string, value) pairs */
12
    parameters;
13
    int parLen=0, parCap;
14
    parCap = cap;
15
    sxnc_property * properties; /*!< array of properties used for the transformation as (string, string) pairs */
16
    properties;
17
    int propLen=0, propCap;
18
    propCap = cap;
19
    sxnc_environment * environ;
20
    sxnc_processor * processor;
21

  
22
    initSaxonc(&environ, &processor, &parameters, &properties, parCap, propCap);
23

  
24
    /*
25
     * First of all, load required component.
26
     * By the time of JET initialization, all components should be loaded.
27
     */
28
    environ->myDllHandle = loadDefaultDll ();
29
	
30
    /*
31
     * Initialize JET run-time.
32
     * The handle of loaded component is used to retrieve Invocation API.
33
     */
34
    initDefaultJavaRT (&environ);
35
    //initJavaRT (environ->myDllHandle, &(environ->jvm), &(environ->env));
36
    const char *verCh = version(*environ);
37
    printf("XPath Tests\n\nSaxon version: %s \n", verCh);
38
    setProperty(&properties, &propLen, &propCap, "s", "cat.xml");
39
    
40

  
41
    sxnc_value * result = evaluate(*environ,&processor, "/home/ond1/work/svn/Saxon.C.Api/cTests/", "/out/person", 0, properties, 0, propLen);
42

  
43
 bool resultBool = effectiveBooleanValue(*environ,&processor, "/home/ond1/work/svn/Saxon.C.Api/cTests/", "count(/out/person)>0", 0, properties, 0, propLen);
44
 
45
    if(!result) {
46
      printf("result is null");
47
    }else {
48
      printf("%s", getStringValue(*environ, *result));
49
    }
50

  
51
   if(resultBool==1) {
52
      printf("Boolean result is as expected: true");
53
    }else {
54
      printf("Boolean result is incorrectly: false");
55
    }
56
      fflush(stdout);   
57

  
58
    finalizeJavaRT (environ->jvm);
59
    freeSaxonc(&environ, &processor, &parameters, &properties);
60
    return 0;
61

  
62
}
latest9.6/hec/samples/cTests/testXQuery.c
1
#include "../../Saxon.C.API/SaxonCProcessor.h"
2

  
3

  
4
int main()
5
{
6
    HANDLE myDllHandle;
7
    //JNIEnv *(environ.env);
8
    //JavaVM *jvm;
9
    jclass  myClassInDll;
10
    int cap = 10;
11
    sxnc_parameter * parameters; /*!< array of paramaters used for the transformation as (string, value) pairs */
12
    parameters;
13
    int parLen, parCap;
14
     parLen = 0;
15
    parCap = cap;
16
    sxnc_property * properties; /*!< array of properties used for the transformation as (string, string) pairs */
17
    properties;
18
    int propLen, propCap;
19
    propCap = cap;
20
    propLen =0;
21
    sxnc_environment * environ;
22
    sxnc_processor * processor;
23

  
24
    initSaxonc(&environ, &processor, &parameters, &properties, parCap, propCap);
25

  
26
    /*
27
     * First of all, load required component.
28
     * By the time of JET initialization, all components should be loaded.
29
     */
30
    environ->myDllHandle = loadDefaultDll ();
31
	
32
    /*
33
     * Initialize JET run-time.
34
     * The handle of loaded component is used to retrieve Invocation API.
35
     */
36
    initDefaultJavaRT (&environ);
37
    //initJavaRT (environ->myDllHandle, &(environ->jvm), &(environ->env));
38
    const char *verCh = version(*environ);
39
    printf("XQuery Tests\n\nSaxon version: %s \n", verCh);
40

  
41
    setProperty(&properties, &propLen, &propCap, "s", "cat.xml");
42

  
43
    setProperty(&properties, &propLen, &propCap, "qs", "<out>{count(/out/person)}</out>");
44

  
45
    const char * result = executeQueryToString(*environ, &processor, "/home/ond1/work/svn/Saxon.C.Api/cTests/", 0,properties,0,propLen);
46

  
47
    //executeQueryToFile(*environ, &processor, "/home/ond1/work/svn/Saxon.C.Api/ctests/", "xquerOut.txt", 0,properties,0,propLen);
48
    if(!result) {
49
      printf("result is null\n");
50
    }else {
51
      printf("%s",result);
52
    }
53
    fflush(stdout);
54
    finalizeJavaRT (environ->jvm);
55
    freeSaxonc(&environ, &processor, &parameters, &properties);
56

  
57
    return 0;
58
}
latest9.6/hec/samples/cTests/testXSLT.c
1
#include "../../Saxon.C.API/SaxonCProcessor.h"
2
#include "../../Saxon.C.API/SaxonCXPath.h"
3

  
4

  
5
int main()
6
{
7
    HANDLE myDllHandle;
8
    //JNIEnv *(environ.env);
9
    //JavaVM *jvm;
10
    jclass  myClassInDll;
11
    int cap = 10;
12
    sxnc_parameter * parameters; /*!< array of paramaters used for the transformation as (string, value) pairs */
13
    parameters;
14
    int parLen=0, parCap;
15
    parCap = cap;
16
    sxnc_property * properties; /*!< array of properties used for the transformation as (string, string) pairs */
17
    properties;
18
    int propLen=0;
19
    parCap = cap;
20
    sxnc_environment * environ;
21
    sxnc_processor * processor;
22

  
23
    initSaxonc(&environ, &processor, &parameters, &properties, parCap, parCap);
24

  
25
    /*
26
     * First of all, load required component.
27
     * By the time of JET initialization, all components should be loaded.
28
     */
29
    environ->myDllHandle = loadDefaultDll ();
30
	
31
    /*
32
     * Initialize JET run-time.
33
     * The handle of loaded component is used to retrieve Invocation API.
34
     */
35
    initDefaultJavaRT (&environ);
36

  
37
    const char *verCh = version(*environ);
38
    printf("XSLT Tests\n\nSaxon version: %s \n", verCh);	
39
    jobject num = integerValue(*environ, 5);
40
    setParameter(&parameters, &parLen, &parCap,"", "numParam", num);
41
  
42

  
43
    const char *result = xsltApplyStylesheet(*environ, &processor, "/home/ond1/work/svn/Saxon.C.Api/cTests/", "ORP0301177AA__EE__30954_sinsello.xml","campos.xsl", 0 ,0, 0, 0);
44
  
45
    /*xsltSaveResultToFile(*environ, &processor, "/home/ond1/work/svn/Saxon.C.Api/cTests/", "cat.xml","test.xsl", "output.txt", parameters ,0, parLen, 0);*/
46
	
47

  
48
    if(!result) {
49
      printf("result is null \n");
50
    }else {
51
      printf("%s", result);
52
    }
53
      fflush(stdout);
54

  
55
    /*
56
     * Finalize JET run-time.
57
     */
58
    finalizeJavaRT (environ->jvm);
59
    freeSaxonc(&environ, &processor, &parameters, &properties);
60
    return 0;
61
}
latest9.6/hec/samples/cppTests/build64bit/buildeec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib64/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxoneec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxoneec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxoneec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxoneec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxoneec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxoneec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxoneec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxoneec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxoneec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxoneec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxoneec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxoneec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxoneec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxoneec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxoneec $1 $2
47

  
latest9.6/hec/samples/cppTests/build64bit/buildhec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib64/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxonhec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxonhec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxonhec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxonhec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxonhec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxonhec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxonhec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxonhec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxonhec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxonhec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxonhec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxonhec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxonhec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxonhec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxonhec $1 $2
47

  
latest9.6/hec/samples/cppTests/build64bit/buildpec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib64/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxonpec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxonpec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxonpec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxonpec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxonpec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxonpec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxonpec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxonpec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxonpec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxonpec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxonpec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxonpec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxonpec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxonpec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxonpec $1 $2
47

  
latest9.6/hec/samples/cppTests/buildeec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxoneec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxoneec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxoneec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxoneec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxoneec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxoneec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxoneec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxoneec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxoneec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxoneec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxoneec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxoneec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxoneec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxoneec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxoneec $1 $2
47

  
latest9.6/hec/samples/cppTests/buildhec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxonhec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxonhec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxonhec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxonhec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxonhec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxonhec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxonhec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxonhec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxonhec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxonhec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxonhec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxonhec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxonhec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxonhec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxonhec $1 $2
47

  
latest9.6/hec/samples/cppTests/buildpec.sh
1
#!/bin/sh
2

  
3
#Build file for Saxon/C on C++
4

  
5
#jdkdir=/usr/lib/jvm/java-7-oracle/include
6

  
7
# $jdkdir/bin/javac MyClassInDll.java
8

  
9
#jc =p MyDll.prj
10
#rm -rf MyDll_jetpdb
11
export JET_HOME=/usr/lib/rt
12
export PATH=$JET_HOME/bin:$PATH
13
export LD_LIBRARY_PATH=$JET_HOME/lib/x86/shared:$LD_LIBRARY_PATH
14

  
15
mkdir -p bin
16

  
17
gcc -m32  -c ../../Saxon.C.API/SaxonCGlue.c -o bin/SaxonCGlue.o -ldl -lc -lsaxonpec $1 $2
18

  
19
gcc -m32  -c ../../Saxon.C.API/SaxonCXPath.c -o bin/SaxonCXPath.o -ldl -lc -lsaxonpec $1 $2
20

  
21
g++ -m32  -c ../../Saxon.C.API/XdmValue.cpp -o bin/XdmValue.o -ldl -lc -lsaxonpec $1 $2
22

  
23
g++ -m32  -c ../../Saxon.C.API/XdmItem.cpp -o bin/XdmItem.o -ldl -lc -lsaxonpec $1 $2
24

  
25
g++ -m32  -c ../../Saxon.C.API/XdmNode.cpp -o bin/XdmNode.o -ldl -lc -lsaxonpec $1 $2
26

  
27
g++ -m32  -c ../../Saxon.C.API/XdmAtomicValue.cpp -o bin/XdmAtomicValue.o -ldl -lc -lsaxonpec $1 $2
28

  
29
g++ -m32  -c ../../Saxon.C.API/SaxonProcessor.cpp -o bin/SaxonProcessor.o -ldl -lc -lsaxonpec $1 $2
30

  
31
g++ -m32  -c ../../Saxon.C.API/XsltProcessor.cpp -o bin/XsltProcessor.o -ldl -lc -lsaxonpec $1 $2
32

  
33
g++ -m32 -c ../../Saxon.C.API/XQueryProcessor.cpp -o bin/XQueryProcessor.o -ldl -lc -lsaxonpec $1 $2
34

  
35
g++ -m32 -c ../../Saxon.C.API/XPathProcessor.cpp -o bin/XPathProcessor.o -ldl -lc -lsaxonpec $1 $2
36

  
37
g++ -m32 -c ../../Saxon.C.API/SchemaValidator.cpp -o bin/SchemaValidator.o -ldl -lc -lsaxonpec $1 $2
38

  
39
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXSLT.cpp -o testXSLT -ldl -lc -lsaxonpec $1 $2
40

  
41
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXQuery.cpp -o testXQuery -ldl -lc -lsaxonpec $1 $2
42

  
43

  
44
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testXPath.cpp -o testXPath -ldl -lc -lsaxonpec $1 $2
45

  
46
g++ -m32  bin/SaxonCGlue.o bin/SaxonCXPath.o bin/SaxonProcessor.o bin/XQueryProcessor.o bin/XsltProcessor.o bin/XPathProcessor.o bin/XdmValue.o bin/XdmItem.o bin/XdmNode.o bin/XdmAtomicValue.o bin/SchemaValidator.o testValidator.cpp -o testValidator -ldl -lc -lsaxonpec $1 $2
47

  
latest9.6/hec/samples/cppTests/cat.xml
1
<out>
2
<person>text1</person>
3
<person>text2</person>
4
<person>text3</person>
5
</out>
latest9.6/hec/samples/cppTests/family-ext.xsd
1
<?xml version="1.0" encoding="UTF-8"?>
2
<schema targetNamespace="http://myexample/family_ext" xmlns:fam="http://myexample/family" xmlns="http://www.w3.org/2001/XMLSchema">
3
  <import namespace="http://myexample/family" schemaLocation="family.xsd"/>
4
  <element name="Cousin" type="string" substitutionGroup="fam:FamilyMember"/>
5
</schema>
latest9.6/hec/samples/cppTests/family.xml
1
<Family xmlns="http://myexample/family" xmlns:fam2="http://myexample/family_ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://myexample/family_ext family-ext.xsd" >
2
<Parent>John</Parent>
3
<Child>Alice</Child>
4
<fam2:Cousin>Pete</fam2:Cousin>
5
</Family>
latest9.6/hec/samples/cppTests/family.xsd
1
<?xml version='1.0' encoding='UTF-8'?>
2
<schema targetNamespace='http://myexample/family' xmlns:fam='http://myexample/family' xmlns='http://www.w3.org/2001/XMLSchema'>
3
  <element name='FamilyMember' type='string' />
4
  <element name='Parent' type='string' substitutionGroup='fam:FamilyMember'/>
5
  <element name='Child' type='string' substitutionGroup='fam:FamilyMember'/>
6
  <element name='Family'>
7
    <complexType>
8
      <sequence>
9
        <element ref='fam:FamilyMember' maxOccurs='unbounded'/>
10
      </sequence>
11
    </complexType>
12
  </element>  
13
</schema>
latest9.6/hec/samples/cppTests/test.xsl
1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
     version="2.0">
3
<!--<xsl:import-schema schema-location="schema_1.xsd" />-->
4
        <xsl:param name="numParam" select="2" />
5
	<xsl:output method="xml" indent="yes" />
6

  
7
  <xsl:template match="*">
8
	<output>
9
	<!--<xsl:value-of select="normalize-unicode('Eisbär', 'NFKD')" />-->
10
    <xsl:for-each select="person" >
11
	<out><xsl:value-of select="."/></out>
12
    </xsl:for-each>
13
      <out><xsl:value-of select="$numParam*2"/></out>
14
    </output>
15
	<xsl:message>Testing message1</xsl:message>
16
	<xsl:message>Testing message2</xsl:message>
17
  </xsl:template>
18

  
19
</xsl:stylesheet>
latest9.6/hec/samples/cppTests/test2.xsl
1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
    version="2.0">
3
<!--<xsl:import-schema schema-location="schema_1.xsd" />-->
4
        <xsl:param name="values" select="(2,3,4)" />
5
	<xsl:output method="xml" indent="yes" />
6

  
7
  <xsl:template match="*">
8
	<output>
9
	<!--<xsl:value-of select="normalize-unicode('Eisbär', 'NFKD')" />-->
10
    <xsl:for-each select="$values" >
11
	<out><xsl:value-of select=". * 2"/></out>
12
    </xsl:for-each>
13
    </output>
14
  </xsl:template>
15

  
16
</xsl:stylesheet>
latest9.6/hec/samples/cppTests/testValidator.cpp
1
#include "../../Saxon.C.API/SaxonProcessor.h"
2
#include "../../Saxon.C.API/XdmValue.h"
3
#include "../../Saxon.C.API/XdmNode.h"
4
#include <string>
5

  
6
using namespace std;
7

  
8
void testValidator1(SaxonProcessor * processor, SchemaValidator * val){
9
	cout<<endl<<"Test Validate Schema from string"<<endl;	
10
 string invalid_xml = "<?xml version='1.0'?><request><a/><!--comment--></request>";
11
 const char* sch1 = "<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified' attributeFormDefault='unqualified'><xs:element name='request'><xs:complexType><xs:sequence><xs:element name='a' type='xs:string'/><xs:element name='b' type='xs:string'/></xs:sequence><xs:assert test='count(child::node()) = 3'/></xs:complexType></xs:element></xs:schema>";
12

  
13

  
14
        string doc1 = "<Family xmlns='http://myexample/family'><Parent>John</Parent><Child>Alice</Child></Family>";
15
	
16
	val->registerSchemaFromString(sch1);
17

  
18
}
19

  
20
void testValidator2(){
21
  SaxonProcessor * processor = new SaxonProcessor(true);
22
  processor->setConfigurationProperty("xsdversion", "1.1");
23
  SchemaValidator * val = processor->newSchemaValidator();
24

  
25
  cout<<endl<<"Test 2: Validate Schema from string"<<endl;	
26
  string invalid_xml = "<?xml version='1.0'?><request><a/><!--comment--></request>";
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff