tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-651) Unescaped attribute value generated
Date Sun, 01 May 2011 09:25:03 GMT

    [ https://issues.apache.org/jira/browse/TIKA-651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027443#comment-13027443

Uwe Schindler commented on TIKA-651:

One addition: This content handler can also be perfectly used to make XSL Transformations
outputting XHTML that is compatible according to above information:

Transformer trans = ...; Source src = ...; Writer out = ...;
trans.transform(src, new SAXResult(new XHTMLContentHandler(out)));

In general this class may be best placed in XERCES/XALAN's serializers, but as XML spec dont
need a separate output type of XHTML, I assume the apache XML project would not accept this
for their serializers (I have not yet tried, as my relation to those projects is not very
close). Maybe I give it a try.

Maybe you could add this class in the utils of TIKA (as TIKA is based on XHTML)?

> Unescaped attribute value generated
> -----------------------------------
>                 Key: TIKA-651
>                 URL: https://issues.apache.org/jira/browse/TIKA-651
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.9
>            Reporter: Raimund Merkert
>         Attachments: XHTMLSerializer.java
> I've converted a word document that contains hyperlinks with a complex query component.
The & character is not escaped and mozilla complains about that when I write out the XHTML
via a content handler that I wrote.
> It's not clear to me whether or not my contenthandler should assume attributes are properly
escaped or not.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message