Hello Xmlizer,

We will make an Oxygen selection plugin that inserts a newline before any '>' character that is located at the end of a tag so that the '>' will be the first character on the next line. A selection plugin is available on the contextual menu of the text editor and receives as parameter the current selection of the editor. We will post the plugin to the list.

You find details about selection plugins in the User Manual:

http://www.oxygenxml.com/doc/ug-oxygen/selection-plugins.html

http://www.oxygenxml.com/doc/ug-oxygen/how-to-develop-oxygen-plugin.html


Regards,
Sorin


mozer wrote:
It seems that proposal has been lost


Let me try to rephrase it

The idea is to use the space "inside" the tag to indent an XML document

Doing it that way, means that, you never change the space "between" the tag which may have nasty effect, or may be hard to parameter


Hope this is clearer now

Regards,

Xmlizer



On Fri, Apr 11, 2008 at 3:19 PM, mozer <[email protected] <mailto:[email protected]>> wrote:

    I'm sorry, if I'm not clear but I never spoke about XSLT
For it is an option of indenting a file which could be called
    "neutral indenting", which would allow us to indent a one line xml
    file without introducing nasty spaces
Regards, Xmlizer

    On Fri, Apr 11, 2008 at 2:01 PM, Sorin Ristache <[email protected]
    <mailto:[email protected]>> wrote:

        Hello,

        Do you mean debugging an XSLT transformation applied to an XML
        file formatted as in your example? I think an XSLT debugger is
        more useful for that and it does not depend on the text format
        of the XML file. For example when you click on a row in the
        Context view or in the XWatch view of the oXygen XSLT debugger
        the start tag of the corresponding XML element is highlighted in
        the XML editor panel. You need just to click in a view of the
        XSLT debugger to go directly to the corresponding XML element in
        the source editor.


        Regards,
        Sorin



        mozer wrote:

            Let me give a simple example
             <root><a><b></b><c></c></a></root>
             into
            <root
             ><a
             ><b
             ></b
             ><c
             ></c
             ></a
             ></root
             >
            May it would make the will less readable than a full indent,
            but in some case, it is just sufficient for debbugging and
            don't need further parametrization
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to