[oXygen-user] Working with well formed document : indent not within elements

mozer
Fri Aug 19 05:10:19 CDT 2005


2005/8/19, Sorin Ristache <>:
> Hello,
> 
> If you add A to the list of preserve space elements from Preferences -
> Editor - Format the whole element A will remain on a single line. Why do
> you need one element per line and without whitespace, like "><B>" and
> "><C>" ? 

I need it because i get "one line xml" documents. And with oXygen i
cannot go to the error if the line is too long. May be if i could go
to the error and manipulate the document in one line i won't need this
tool...

And i don't want extra whitespaces in elements. And there is too much
elements to add to preferences format

> It looks more readable for me with normal indenting like:
> 
> <A ID="1" REF="2">
>      <B>foo</B>
>      <C>bar</C>
> </A>
> 
> If you don't need whitespace text nodes inside the A element you can
> remove them with the XSLT stylesheet that extracts the output data from
> your XML document. Usually you don't present the data stored in the XML
> document directly to the user. The data is processed with a XSLT stylesheet.

It's not always simple to extract extra spaces in a generic manner,
it's often specific to the DTD

> 
> 
> Best regards,
> Sorin
> 
> 
> mozer wrote:
> > Hello
> >
> > I'm regularly working with well formed document (but not valid)
> > I love indent of oXygen but i did give me all i want because it adds
> > whitespaces everywhere
> > i love to find an option to indent such a way spaces WON'T be in the element
> >
> > example
> >
> > <A ID="1" REF="2"><B>foo</B><C>bar</C></A>
> >
> > becomes
> >
> > <A ID="1" REF="2"
> >   ><B>foo</B
> >   ><C>bar</C
> >
> >></A>
> >
> >
> > with unlimited size (only making one element per lines)
> >
> > for the moment, i must do it with another tool
> >
> > Is there a simple way to do it in Oxygen ?
> >
> > Xmlizer
> > _______________________________________________
> > oXygen-user mailing list
> > 
> > http://www.oxygenxml.com/mailman/listinfo/oxygen-user
> _______________________________________________
> oXygen-user mailing list
> 
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>



More information about the oXygen-user mailing list