You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Ramsteijn <Ra...@yahoo.com> on 2006/03/26 14:48:47 UTC

Extract XML from the pipeline

Dear all,

Typically an XSP is used to get an XML document into a pipeline. But how 
do I do I achieve the opposite?

Use case: my website needs to receive posted XML documents. You can get 
a posted XML document into the pipeline by using the stream generator. 
But I need to validate the XML document and store its content into a 
database, so I guess I need to get it into an XSP in order to do this 
kind of processing. Or are there better approaches?

Thank in advance,
Paul Ramsteijn,
Renal Replacement Registry of the Netherlands.
 





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Extract XML from the pipeline

Posted by Gerrit boers <gb...@xs4all.nl>.
Paul,

Probably on my website:

http://gboers.xs4all.nl

At a later stage we hope to give it to HL7.org

Gerrit


On Mar 26, 2006, at 3:42 PM, Paul Ramsteijn wrote:

> Gerrit,
>
> Currently, we are not compliant to HL7 - we are using a proprietary  
> XML schema instead. Future formats may comply, however. In both  
> cases, and from a technical point of view, we have the use of XML  
> schema in common.
>
> The use of transformers instead of routing the message through XSP  
> is indeed a different approach. So I am very eager to learn from  
> your approach! Where can I find it once released?
>
> Thanks,
> Paul Ramsteijn.
>
>
> Gerrit boers wrote:
>
>> Paul,
>>
>> Are you talking about HL7v3 or CDA messages?
>>
>> I'm building a webapplication for validating HL7 CDA R2 messages   
>> against XML schema and schematron rules. We hope to release this  
>> as  open-source soon.
>>
>> The application uses cForms to handle the uploadform. Based on  
>> the  selected validation, the uploaded content is sent to a  
>> pipeline  containing a streamgenerator and multiple transformers  
>> which do the  validating (validationReportTransformer for XML  
>> schema and xslt for  schematron). In my case the result is  
>> rendered as html, you could add  a transformer to save the content  
>> to a database.
>>
>>
>> Hope this helps,
>>
>> Gerrit Boers
>>
>>
>> On Mar 26, 2006, at 2:48 PM, Paul Ramsteijn wrote:
>>
>>> Dear all,
>>>
>>> Typically an XSP is used to get an XML document into a pipeline.   
>>> But how do I do I achieve the opposite?
>>>
>>> Use case: my website needs to receive posted XML documents. You  
>>> can  get a posted XML document into the pipeline by using the  
>>> stream  generator. But I need to validate the XML document and  
>>> store its  content into a database, so I guess I need to get it  
>>> into an XSP in  order to do this kind of processing. Or are there  
>>> better approaches?
>>>
>>> Thank in advance,
>>> Paul Ramsteijn,
>>> Renal Replacement Registry of the Netherlands.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Extract XML from the pipeline

Posted by Paul Ramsteijn <Ra...@yahoo.com>.
Gerrit,

Currently, we are not compliant to HL7 - we are using a proprietary XML 
schema instead. Future formats may comply, however. In both cases, and 
from a technical point of view, we have the use of XML schema in common.

The use of transformers instead of routing the message through XSP is 
indeed a different approach. So I am very eager to learn from your 
approach! Where can I find it once released?

Thanks,
Paul Ramsteijn.


Gerrit boers wrote:

> Paul,
>
> Are you talking about HL7v3 or CDA messages?
>
> I'm building a webapplication for validating HL7 CDA R2 messages  
> against XML schema and schematron rules. We hope to release this as  
> open-source soon.
>
> The application uses cForms to handle the uploadform. Based on the  
> selected validation, the uploaded content is sent to a pipeline  
> containing a streamgenerator and multiple transformers which do the  
> validating (validationReportTransformer for XML schema and xslt for  
> schematron). In my case the result is rendered as html, you could add  
> a transformer to save the content to a database.
>
>
> Hope this helps,
>
> Gerrit Boers
>
>
> On Mar 26, 2006, at 2:48 PM, Paul Ramsteijn wrote:
>
>> Dear all,
>>
>> Typically an XSP is used to get an XML document into a pipeline.  But 
>> how do I do I achieve the opposite?
>>
>> Use case: my website needs to receive posted XML documents. You can  
>> get a posted XML document into the pipeline by using the stream  
>> generator. But I need to validate the XML document and store its  
>> content into a database, so I guess I need to get it into an XSP in  
>> order to do this kind of processing. Or are there better approaches?
>>
>> Thank in advance,
>> Paul Ramsteijn,
>> Renal Replacement Registry of the Netherlands.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Extract XML from the pipeline

Posted by Gerrit boers <gb...@xs4all.nl>.
Paul,

Are you talking about HL7v3 or CDA messages?

I'm building a webapplication for validating HL7 CDA R2 messages  
against XML schema and schematron rules. We hope to release this as  
open-source soon.

The application uses cForms to handle the uploadform. Based on the  
selected validation, the uploaded content is sent to a pipeline  
containing a streamgenerator and multiple transformers which do the  
validating (validationReportTransformer for XML schema and xslt for  
schematron). In my case the result is rendered as html, you could add  
a transformer to save the content to a database.


Hope this helps,

Gerrit Boers


On Mar 26, 2006, at 2:48 PM, Paul Ramsteijn wrote:

> Dear all,
>
> Typically an XSP is used to get an XML document into a pipeline.  
> But how do I do I achieve the opposite?
>
> Use case: my website needs to receive posted XML documents. You can  
> get a posted XML document into the pipeline by using the stream  
> generator. But I need to validate the XML document and store its  
> content into a database, so I guess I need to get it into an XSP in  
> order to do this kind of processing. Or are there better approaches?
>
> Thank in advance,
> Paul Ramsteijn,
> Renal Replacement Registry of the Netherlands.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Extract XML from the pipeline

Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 26 mars 06 à 14:48, Paul Ramsteijn a écrit :

> ...I need to validate the XML document and store its content into a  
> database, so I guess I need to get it into an XSP in order to do  
> this kind of processing. Or are there better approaches?..

 From flowscript, you can use processPipelineTo to access the results  
of a pipeline. This is IMHO the easiest way in your case.

-Bertrand