You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Webbird (JIRA)" <xa...@xml.apache.org> on 2004/12/22 11:37:08 UTC

[jira] Created: (XALANJ-2029) XML file must contain LF, CRLF or CR are unsupported

XML file must contain LF, CRLF or CR are unsupported
----------------------------------------------------

         Key: XALANJ-2029
         URL: http://nagoya.apache.org/jira/browse/XALANJ-2029
     Project: XalanJ2
        Type: Bug
  Components: Other  
    Reporter: Webbird


When running the XSLT transformation on an input file, which contains CRLF instead of LF, the Crimson parser doesn't work correctly. It throws an InternalError in InputEntity.java:545...

However, I didn't test it with CR, but I'm quite sure that it don't work as well...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XALANJ-2029) XML file must contain LF, CRLF or CR are unsupported

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-2029?page=comments#action_57003 ]
     
Brian Minchau commented on XALANJ-2029:
---------------------------------------

Joe is right. The serializer queries the JVM with System.getProperty("line.separator"); 

Although this is not a documented, or supported way of doing this, you could call System.setProperty with "line.separator" and specify a string with the chacter(s) of interest before using Xalan. I'm not sure what will happen in a server environment when you do this, you could impact all users!

If the serializer did have a public, supported API for setting the line separator what would it be? A Xalan specific attribute/value pair on an <xsl:output ..../> element?

  <xsl:output ... xalan:line-sep="\u0008"  .../>

where xalan is the prefix pointing to some Xalan
namespace URI, like xalan:indent-amount.
(see http://xml.apache.org/xalan-j/usagepatterns.html
 for information on indent-amount ).

> XML file must contain LF, CRLF or CR are unsupported
> ----------------------------------------------------
>
>          Key: XALANJ-2029
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-2029
>      Project: XalanJ2
>         Type: Bug
>   Components: Other
>     Reporter: Webbird

>
> When running the XSLT transformation on an input file, which contains CRLF instead of LF, the Crimson parser doesn't work correctly. It throws an InternalError in InputEntity.java:545...
> However, I didn't test it with CR, but I'm quite sure that it don't work as well...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XALANJ-2029) XML file must contain LF, CRLF or CR are unsupported

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XALANJ-2029?page=comments#action_12319043 ] 

Brian Minchau commented on XALANJ-2029:
---------------------------------------

Webbird,
please verify that the new Xalan line-separator  extension attribute of xsl:output works for you and close this issue.

Thanks.

> XML file must contain LF, CRLF or CR are unsupported
> ----------------------------------------------------
>
>          Key: XALANJ-2029
>          URL: http://issues.apache.org/jira/browse/XALANJ-2029
>      Project: XalanJ2
>         Type: Bug
>   Components: Other
>     Versions: Latest Development Code
>     Reporter: Webbird
>      Fix For: 2.7

>
> When running the XSLT transformation on an input file, which contains CRLF instead of LF, the Crimson parser doesn't work correctly. It throws an InternalError in InputEntity.java:545...
> However, I didn't test it with CR, but I'm quite sure that it don't work as well...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (XALANJ-2029) XML file must contain LF, CRLF or CR are unsupported

Posted by "Joe Kesselman (JIRA)" <xa...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XALANJ-2029?page=comments#action_56972 ]
     
Joe Kesselman commented on XALANJ-2029:
---------------------------------------

The XML spec says parsers *must* accept any of CR, LF, or CRLF and convert them to an XML newline character. As of XML 1.1, the EBCDIC newline character is also equivalent to these.

So as a Xalan bug, this is INVALID. If Crimson isn't accepting a file which uses one of these line break sequences, that should be reported as a bug against Crimson. (Is anyone stil maintaining Crimson?)

Having said that, it would be a useful feature to be able to tell the Xalan serializer which of these sequences you want used on output. I seem to remember that Xalan-J currently uses whatever the JVM says is the platform's default newline representation. I honestly can't remember whether we've already provided an override option or not. If not, this is a valid ENHANCEMENT request.

> XML file must contain LF, CRLF or CR are unsupported
> ----------------------------------------------------
>
>          Key: XALANJ-2029
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-2029
>      Project: XalanJ2
>         Type: Bug
>   Components: Other
>     Reporter: Webbird

>
> When running the XSLT transformation on an input file, which contains CRLF instead of LF, the Crimson parser doesn't work correctly. It throws an InternalError in InputEntity.java:545...
> However, I didn't test it with CR, but I'm quite sure that it don't work as well...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (XALANJ-2029) XML file must contain LF, CRLF or CR are unsupported

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2029?page=all ]
     
Brian Minchau resolved XALANJ-2029:
-----------------------------------

    Fix Version: 2.7
     Resolution: Invalid

Resolving as invalid. However there is a new xalan specific xsl:output property, 
the attribute name is "line-separator".  See the website documentation on this new property.

> XML file must contain LF, CRLF or CR are unsupported
> ----------------------------------------------------
>
>          Key: XALANJ-2029
>          URL: http://issues.apache.org/jira/browse/XALANJ-2029
>      Project: XalanJ2
>         Type: Bug
>   Components: Other
>     Versions: Latest Development Code
>     Reporter: Webbird
>      Fix For: 2.7

>
> When running the XSLT transformation on an input file, which contains CRLF instead of LF, the Crimson parser doesn't work correctly. It throws an InternalError in InputEntity.java:545...
> However, I didn't test it with CR, but I'm quite sure that it don't work as well...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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