OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: On the white-space characters


Adding  office@lists.oasis-open.org to hear others thoughts on the below...


Thanks,
Aarti


-----Original Message-----
From: Jos van den Oever [mailto:Jos.Oever@koop.overheid.nl] 
Sent: Wednesday, March 29, 2017 2:52 AM
To: Patrick Durusau <patrick@durusau.net>; Aarti Nankani <anankani@microsoft.com>
Subject: Re: On the white-space characters

I have to make a correction: the current whitespace handling rules can remove spaces that were set to 'preserve' by xml:space. So xml:space only has effect if the current whitespace rules are not followed.

A solution might be to only follow the ODF whitespace rules if xml:space is not set to 'preserve'. This would not be backwards compatible.

Cheers,
Jos

On 29-03-17 11:25, Jos van den Oever wrote:
> Hello Aarti and Patrick,
>
> Shouldn't we discuss this on office@lists.oasis-open.org?
>
> XML files in ODF are XML1.0 files. xml:space is part of that 
> specification. So xml:space should be respected by ODF software.
>
> The whitespace handling that we are discussing is an additional 
> mechanism. It's probably not needed except for backwards compatibility 
> and the idea of simple deprecating it is a refreshing simplification.
>
> Question is: how do current implementations handle xml:preserve?
>
> Cheers,
> Jos
>
> On 29-03-17 01:24, Patrick Durusau wrote:
>> Aarti,
>>
>> Well, your right, XML already has whitespace rules, but we didn't 
>> follow them long ago and far away when ODF 1.0 was written. I suspect 
>> it was internal whitespace handling in OpenOffice that had diverged 
>> from XML and that was captured in 1.0. I say that never having asked 
>> any of the engineers why we diverged so long ago on such a routine issue.
>>
>> I have suggested XML whitespace handling at least once, perhaps more 
>> than once.
>>
>> I think the controlling issue is existing code bases handle 
>> whitespace as we specified it so long ago and to re-write and proof 
>> that code, just to be consistent with XML, isn't viewed as a priority.
>>
>> Jos?
>>
>> Hope you are having a great day!
>>
>> Patrick
>>
>>
>>
>>
>> On 03/28/2017 06:30 PM, Aarti Nankani wrote:
>>>
>>> Hi Patrick/Jos,
>>>
>>>
>>>
>>> I was reading up on the whitespace issue
>>> https://issues.oasis-open.org/browse/OFFICE-2102
>>> <https://issues.oasis-open.org/browse/OFFICE-2102>
>>>
>>>
>>>
>>> XML already has an xml:space attribute to use when you want to 
>>> preserve whitespace.
>>>
>>> Shouldn't this be controlled by the xml:space attribute on 
>>> individual tags. XML already has whitespace collapsing rules.
>>>
>>>
>>>
>>> For example, in DOCX - if you want to have multiple spaces in 
>>> between characters in a <w:t> tag, we put <w:t 
>>> xml:space="preserve">This has spaces</w:t>
>>>
>>> What are the committee's thoughts on using the default XML parsing 
>>> rules for spaces. Why not have ODF use that?
>>>
>>>
>>>
>>> Thanks,
>>> Aarti
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>> Patrick Durusau
>> patrick@durusau.net
>> Technical Advisory Board, OASIS (TAB) Editor, OpenDocument Format TC 
>> (OASIS), Project Editor ISO/IEC 26300 Co-Editor, ISO/IEC 13250-1, 
>> 13250-5 (Topic Maps)
>>
>> Another Word For It (blog): http://tm.durusau.net
>> Homepage: http://www.durusau.net
>> Twitter: patrickDurusau
>>
>
>


--
Senior Adviseur Linked Data
KOOP
........................................................................
Kennis- en Exploitatiecentrum Officiële Overheidspublicaties (KOOP) Uitvoeringsorganisatie Bedrijfsvoering Rijk Ministerie van Binnenlandse Zaken en Koninkrijksrelaties Wilhelmina van Pruisenweg 52 | 2595 AN | Den Haag | Kamer Oranje, 1e etage 038 Postbus 20011 | 2500 EA | Den Haag Secretariaat | secretariaat@koop.overheid.nl | 070 700 05 25 ........................................................................
M 06 54 71 54 04
jos.oever@koop.overheid.nl
http://koop.overheid.nl


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]