santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44177] New: - when using xslt transformation there is problem with xalan newline
Date Mon, 07 Jan 2008 15:42:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44177>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44177

           Summary: when using xslt transformation there is problem with
                    xalan newline
           Product: Security
           Version: unspecified
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Signature
        AssignedTo: security-dev@xml.apache.org
        ReportedBy: Matej.Spiller@siol.net


When signature has xslt transformation reference, there is a problem, because
xalan changes new lines in transformed output to \n on linux and \r\n on
windows, regardles of newline type in input file. Consequence is that signature
is invalid when validating on different OS. This should be consistent everywhere
if signature is to be valid.

You could use something like
Transformer.setOutputProperty("{http://xml.apache.org/xalan}line-separator","\n");

.Net uses \n as newline separator when using xslt transformation.

But what does w3c standard say ?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message