You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Celinio Fernandes <cf...@pagesjaunes.fr> on 2005/08/10 17:16:38 UTC

RE : SAXON and XQuery processor

Well,
I just learnt that apparently there is a commercial version of SAXON and
an open-source one.


-----Message d'origine-----
De : Naradasu, Krishna [mailto:Krishna.Naradasu@broadwing.com] 
Envoyé : mercredi 10 août 2005 17:15
À : user@xmlbeans.apache.org
Objet : RE: SAXON and XQuery processor


Try Xalan from apache.i know it is  an xslt parser.

Krishna. 

-----Original Message-----
From: Celinio Fernandes [mailto:cfernandes.externe@pagesjaunes.fr] 
Sent: Wednesday, August 10, 2005 10:13 AM
To: user@xmlbeans.apache.org
Subject: SAXON and XQuery processor

Hi,
I thought Saxon was open source but it is not.

Do you guys know another Xquery processor, open source and then free of
charges ?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Xquery and XMLcursor again

Posted by Celinio Fernandes <cf...@pagesjaunes.fr>.
Hi,

In my program, I do not want to proceed the sets of EPJ for which at
least one of their children <LIEN_EPJ>
have the elements LE_CO_TYPE and LE_DA_SUPPRESSION that match this
condition:
 [LE_CO_TYPE = R and LE_DA_SUPPRESSION is empty ]
 
 So, I wrote this:
 
MPGPVCDocument mpgpvcdoc = MPGPVCDocument.Factory.parse(inputXMLFile);	
// Get object reference of root element MPGPVC.
MPGPVCDocument.MPGPVC MPGPVCElement = mpgpvcdoc.getMPGPVC();	
EPJ[] lesepjs = MPGPVCElement.getEPJArray();
	 while ( i < lesepjs.length)
    {	
	    XmlCursor itemCursor = lesepjs[i].newCursor();
	    itemCursor.toChild("LIENS_EPJ"); // ==> LIENS_EPJ
	    itemCursor.push();
	    // this displays all elements from  <!-- POSITION 1 --> to
<!-- POSITION 2 -->
	    System.out.println(itemCursor.xmlText()); 
			    
	    // Now how do i get to loop on itemcursor and check for
every subset 	<LIEN_EPJ>
	    // to see if their elements LE_CO_TYPE and
LE_DA_SUPPRESSION match the condition ?
	    
	    
    }
  
  
 Thanks for your suggestions.

Here is the XML file:

<?xml version="1.0" encoding="UTF-8"?>
<MPG-PVC xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="mpgpvc.xsd">
	<DATE_ENVOI>07/08/2005 09:07:01</DATE_ENVOI>
	<NB_EPJ>92</NB_EPJ>
	<EPJ>
		<DT> 
			<DT_CO_EMETTEUR_MVT>PVC3</DT_CO_EMETTEUR_MVT>
		</DT>
		<LIENS_EPJ>     <!-- POSITION 1 -->
			<LIEN_EPJ>
				<LE_ID_EPJA_FONC>8</LE_ID_EPJA_FONC>
				<LE_CO_TYPE>R</LE_CO_TYPE>
				<LE_DA_SUPPRESSION></LE_DA_SUPPRESSION>
			</LIEN_EPJ>
			<LIEN_EPJ>
				<LE_ID_EPJA_FONC>7</LE_ID_EPJA_FONC>
				<LE_CO_TYPE>R</LE_CO_TYPE>
	
<LE_DA_SUPPRESSION>10/02/2004</LE_DA_SUPPRESSION>
			</LIEN_EPJ>
		</LIENS_EPJ>  <!-- POSITION 2 -->
</EPJ>
<EPJ>
etc ...
</EPJ>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: RE : SAXON and XQuery processor

Posted by "Steven J. Sobol" <sj...@JustThe.net>.
On Wed, 10 Aug 2005, Celinio Fernandes wrote:

> Well,
> I just learnt that apparently there is a commercial version of SAXON and
> an open-source one.

Right. I think you want one of the 'b' versions. The 'sa' schema-aware
versions are commercially licensed.

http://saxon.sourceforge.net/ is the open-source homepage, with the 
closed-source homepage at http://www.saxonica.com/

-- 
Steve Sobol, Professional Geek   888-480-4638   PGP: 0xE3AE35ED
Company website: http://JustThe.net/
Personal blog, resume, portfolio: http://SteveSobol.com/
E: sjsobol@JustThe.net Snail: 22674 Motnocab Road, Apple Valley, CA 92307



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org