You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Samuel Medeiros <cc...@gmail.com> on 2013/09/22 23:39:17 UTC

GSoC 2013 - Final Patch

Hi Xalan Community,

you can find attached the final patch that introduces the support for
StAXSource/StAXResult in Xalan.

StAXSource support through adapters between StAX and SAX technologies works
perfectly.

StAXResult support through adapters between SAX and StAX technologies works
very well, but there are some limitations:

   - When using XMLStreamWriter, it does not write standalone information.
   The more complete method just write encoding and version information [1];
   - There is an indentation issue with items that are not inside a
   <xsl:apply-templates>. This problem also occurs when using pure SAX
   technologie. I would suggest a revision in the class ToXMLSAXHandler; this
   class receives notification of SAX-like events, and invoke the
   equivalent SAX methods to a pure SAX content handler or to the SAX to StAX
   adapter that implements content handler. Take a look at
   TransformerImpl::createSerializationHandler(...).


I would suggest the use of the Woodstox's implementation for XMLOutputFactory
because when I was using the default one, I got the error [2] when passing
the value of the property OutputKeys.ENCODING to the method [1].

Thank you very much for the opportunity to work with you this summer.

Sincerely,
Samuel Queiroz

[1] http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html#writeStartDocument(java.lang.String,
java.lang.String)
[2]  javax.xml.stream.XMLStreamException: Underlying stream encoding
'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do not
match.

Re: GSoC 2013 - Final Patch

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Samuel,

I've also completed the final evaluation.

Thanks for all your excellent work over the summer.

Michael Glavassevich
XML Technologies and WAS Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Samuel Medeiros <cc...@gmail.com> wrote on 09/26/2013 10:50:10 AM:

> HI Michael,
> 
> I just completed my final evaluation on Melange's website.
> 
> Thank you for mentoring this summer project.
> 
> Sincerely,
> Samuel
> 
> 

> 2013/9/22 Samuel Medeiros <cc...@gmail.com>
> Hi Xalan Community,
> 
> you can find attached the final patch that introduces the support 
> for StAXSource/StAXResult in Xalan.
> 
> StAXSource support through adapters between StAX and SAX 
> technologies works perfectly.
> 
> StAXResult support through adapters between SAX and StAX 
> technologies works very well, but there are some limitations:
> When using XMLStreamWriter, it does not write standalone 
> information. The more complete method just write encoding and 
> version information [1];
> There is an indentation issue with items that are not inside a 
> <xsl:apply-templates>. This problem also occurs when using pure SAX 
> technologie. I would suggest a revision in the class 
> ToXMLSAXHandler; this class receives notification of SAX-like 
> events, and invoke the equivalent SAX methods to a pure SAX content 
> handler or to the SAX to StAX adapter that implements content 
> handler. Take a look at 
TransformerImpl::createSerializationHandler(...). 
> 
> I would suggest the use of the Woodstox's implementation 
> for XMLOutputFactory because when I was using the default one, I got
> the error [2] when passing the value of the 
> property OutputKeys.ENCODING to the method [1].
> 
> Thank you very much for the opportunity to work with you this summer.
> 
> Sincerely,
> Samuel Queiroz
> 
> [1] http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/
> XMLStreamWriter.html#writeStartDocument(java.lang.String, 
java.lang.String)
> [2]  javax.xml.stream.XMLStreamException: Underlying stream encoding
> 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' 
> do not match.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org
For additional commands, e-mail: dev-help@xalan.apache.org


Re: GSoC 2013 - Final Patch

Posted by Samuel Medeiros <cc...@gmail.com>.
HI Michael,

I just completed my final evaluation on Melange's website.

Thank you for mentoring this summer project.

Sincerely,
Samuel



2013/9/22 Samuel Medeiros <cc...@gmail.com>

> Hi Xalan Community,
>
> you can find attached the final patch that introduces the support for
> StAXSource/StAXResult in Xalan.
>
> StAXSource support through adapters between StAX and SAX technologies
> works perfectly.
>
> StAXResult support through adapters between SAX and StAX technologies
> works very well, but there are some limitations:
>
>    - When using XMLStreamWriter, it does not write standalone
>    information. The more complete method just write encoding and version
>    information [1];
>    - There is an indentation issue with items that are not inside a
>    <xsl:apply-templates>. This problem also occurs when using pure SAX
>    technologie. I would suggest a revision in the class ToXMLSAXHandler; this
>    class receives notification of SAX-like events, and invoke the
>    equivalent SAX methods to a pure SAX content handler or to the SAX to StAX
>    adapter that implements content handler. Take a look at
>    TransformerImpl::createSerializationHandler(...).
>
>
> I would suggest the use of the Woodstox's implementation for XMLOutputFactory
> because when I was using the default one, I got the error [2] when passing
> the value of the property OutputKeys.ENCODING to the method [1].
>
> Thank you very much for the opportunity to work with you this summer.
>
> Sincerely,
> Samuel Queiroz
>
> [1] http://docs.oracle.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html#writeStartDocument(java.lang.String,
> java.lang.String)
> [2]  javax.xml.stream.XMLStreamException: Underlying stream encoding
> 'Cp1252' and input paramter for writeStartDocument() method 'UTF-8' do
> not match.
>