You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Brian Minchau (JIRA)" <xa...@xml.apache.org> on 2005/04/05 23:15:17 UTC

[jira] Created: (XALANJ-2093) Serializer needs an API to set the end of line sequence

Serializer needs an API to set the end of line sequence
-------------------------------------------------------

         Key: XALANJ-2093
         URL: http://issues.apache.org/jira/browse/XALANJ-2093
     Project: XalanJ2
        Type: New Feature
    Reporter: Brian Minchau


The serializer currently gets the end of line squence from 
System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.



-- 
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
-
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] Updated: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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

Brian Minchau updated XALANJ-2093:
----------------------------------

    Attachment: line-separator.patch.txt

Attaching a patch to the serializer, for a new xalan extension property.

This property can be set in xsl:output
  <xsl:output xalan:line-separator="&#10;" />
where xalan is a prefix associated with the URL "http://xml.apache.org/xalan".

Alternately of course, if the transformation is run through JAXP,
this could be programatically set:
transformer.setOutputProperty("{http://xml.apache.org/xalan}line-separator","\n");


> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: line-separator.patch.txt
>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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] Closed: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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


Closing issue.

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: line-separator.patch.txt
>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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-2093) Serializer needs an API to set the end of line sequence

Posted by "Morris Kwan (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2093?page=comments#action_66765 ]
     
Morris Kwan commented on XALANJ-2093:
-------------------------------------

I have reviewed the patch and I do not see any problem.

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: line-separator.patch.txt
>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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] Updated: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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

Brian Minchau updated XALANJ-2093:
----------------------------------

    Component: Serialization

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau

>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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
-
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] Assigned: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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

Brian Minchau reassigned XALANJ-2093:
-------------------------------------

    Assign To: Brian Minchau

Assigning to Brian M. fix priority fp3, per the Xalan-J issue meeting on May 3, 2005.

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau

>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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-2093) Serializer needs an API to set the end of line sequence

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

For those of you watching this issue, I've come up with a design.

The end of line sequence seems much like other xsl:output properties that
impact serialization, such as <xsl:output indent="yes" />.

I'm planning on adding a new Xalan specific output property, 
like "indent-amount", which is set as follows in a stylesheet:
    <xsl:output indent="yes" xalan:indent-amount="4" />
where the xalan prefix points to "http://xml.apache.org/xalan".

In JAXP this same property can be done on the
Transformer object before doing the transformation as follows:
    transformer.setOutputProperty("indent","yes");
    transformer.setOutputProperty(
         "{http://xml.apache.org/xalan}indent-amount","4");

---------------------------------------------
So the new property in the xalan namespace that I'm planning to
introduce is line-separator, set on an xsl:output element like this:
    <xsl:output xalan:line-separator="&#10;" />
or with JAXP like this:
    transformer.setOutputProperty(
         "{http://xml.apache.org/xalan}line-separator","\n");





> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau

>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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] Resolved: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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

    Resolution: Fixed

Patch was applied to the code base.

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: line-separator.patch.txt
>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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] Updated: (XALANJ-2093) Serializer needs an API to set the end of line sequence

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

Brian Minchau updated XALANJ-2093:
----------------------------------

    Xalan info: [PatchAvailable]

> Serializer needs an API to set the end of line sequence
> -------------------------------------------------------
>
>          Key: XALANJ-2093
>          URL: http://issues.apache.org/jira/browse/XALANJ-2093
>      Project: XalanJ2
>         Type: New Feature
>   Components: Serialization
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: line-separator.patch.txt
>
> The serializer currently gets the end of line squence from 
> System.getProperty("line.separator") at runtime. There have been numbers bugs opened over related issues ( e.g. XALANJ-2075 ).  It isn't that this is a bug, but that many issue reporters would be satisfied if there was a way to set the line separator.

-- 
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