Re: [basex-talk] file:write, formatting, and maps in select attributes

2024-02-24 Thread Graydon Saunders
Hi Andy, Those look like very useful links; thank you! Absolutely not going to argue it's BaseX's job in particular to have a considered-as-lines consistency default, but keep running into situations where one is needed. thanks! Graydon On Sat, Feb 24, 2024 at 8:30 AM Andy Bunce wrote: > Hi

Re: [basex-talk] file:write, formatting, and maps in select attributes

2024-02-24 Thread Andy Bunce
Hi Graydon, >I'm trying to regularize the formatting of some XSLT files I don't think this can or should be done with BaseX serialization. I would use a dedicated formater/ pretty printer. For me the sign of a good formatter is that it tidies random indentation while preserving what looks

Re: [basex-talk] file:write, formatting, and maps in select attributes

2024-02-23 Thread gerrit . imsieke
Hi Graydon, This might not be a serialization but a parsing problem The XML parser performs attribute value normalization as per https://www.w3.org/TR/xml/#AVNormalize I have often wished that there were a parser option to preserve newlines in attribute values, in particular for keeping the