XML Formatting Splits Node Text

Are you missing a feature? Request its implementation here.
Jamil
Posts: 99
Joined: Thu Oct 23, 2008 6:29 am

XML Formatting Splits Node Text

Post by Jamil »

I faced an XSLT issue earlier I was trying to resolve when I finally realized that oxygen editor caused the issue with Format & Indent of XML.

Here is pre format & indent:

Code: Select all

<rslt:file rslt:isfolder="false"><rslt:name>04-Doodlin&apos;.flac</rslt:name><rslt:path>E:\Art Blakey\1991, The History of Art Blakey And The Jazz Messengers\</rslt:path><rslt:modified>7/6/2024 12:16:07 AM</rslt:modified><rslt:created>7/6/2024 12:16:07 AM</rslt:created><rslt:lastaccess>7/6/2024 12:16:07 AM</rslt:lastaccess><rslt:modifiedft>133647129670000000</rslt:modifiedft><rslt:createdft>133647129670000000</rslt:createdft><rslt:lastaccessft>133647129670000000</rslt:lastaccessft><rslt:size>42,990.00 KB</rslt:size><rslt:sizebytes>44021520</rslt:sizebytes><rslt:attr>4225</rslt:attr><rslt:type>FLAC Audio File (VLC)</rslt:type></rslt:file>
Here is post format & indent:

Code: Select all

    <rslt:file rslt:isfolder="false">
        <rslt:name>04-Doodlin&apos;.flac</rslt:name>
        <rslt:path>E:\Art Blakey\1991, The History of Art Blakey And The Jazz
            Messengers\</rslt:path>
        <rslt:modified>7/6/2024 12:16:07 AM</rslt:modified>
        <rslt:created>7/6/2024 12:16:07 AM</rslt:created>
        <rslt:lastaccess>7/6/2024 12:16:07 AM</rslt:lastaccess>
        <rslt:modifiedft>133647129670000000</rslt:modifiedft>
        <rslt:createdft>133647129670000000</rslt:createdft>
        <rslt:lastaccessft>133647129670000000</rslt:lastaccessft>
        <rslt:size>42,990.00 KB</rslt:size>
        <rslt:sizebytes>44021520</rslt:sizebytes>
        <rslt:attr>4225</rslt:attr>
        <rslt:type>FLAC Audio File (VLC)</rslt:type>
    </rslt:file>
The problem with this is that is is creating new lines in the middle of node text that breaks XSLT. Is there an option to format and not do this? If the answer is no, please add this feature.
Mircea
Posts: 142
Joined: Tue Mar 25, 2003 11:21 am

Re: XML Formatting Splits Node Text

Post by Mircea »

Hello Jamil,

If you want to avoid breaking lines by formatter in your case just go to "Options/Preferences/Editor/Format/Foma and Indent/Line Width", and set the line length to "1000".

Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jamil
Posts: 99
Joined: Thu Oct 23, 2008 6:29 am

Re: XML Formatting Splits Node Text

Post by Jamil »

Thank you.
I don't remember this issue, so I probably had this set long ago. I got a new workstation and had to reinstall.
Post Reply