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

 


Help: OASIS Mailing Lists Help | MarkMail Help

xliff message

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


Subject: Call for dissent: csprd02 127 xml:space text change


I propose we update the 2.3.2.2 xml:space text to indicate the inheritance behavior described by Yves. And I also propose we change the Default value to “undefined.”

 

Add the following note:

 

While xml:space is specified in <source> and <target>, elements that allow extended attributes cannot be prevented from using it. Therefore if xml:space is set on any element, its descendants will inherit its xml:space value, unless specifically overridden, for example:

 

<unit id='1' xml:space='preserve'>
 <segment>
  <source>pre-formatted text</source> <!-- implicit xml:space='preserve' -->
 </segment>
</unit>

 

 

If I do not receive dissent by the end of the week I will consider this approved.

 

Thanks,

 

Bryan

 

 

 

Hi all,
 
The attributes xml:lang and xml:space can be used on <source> and <target>.
But because they are in a non-XLIFF namespace, they presumably can also be used on elements that accept extended attributes.
 
Because, per the XML specification, those two attributes work with inheritance, one can set, for example, the xml:space value of a
<source> or a <target> without declaring the attribute on that element:
 
<unit id='1' xml:space='preserve'>
 <segment>
  <source>pre-formatted text</source> <!-- implicit xml:space='preserve' -->
 </segment>
</unit>
 
There is no mention of this anywhere in the specification.
I'm wondering if it's not worth having some note about this in the xml:space section.
 
The specification also says for xml:space:
 
Default value: default 
 
Which is, from an XML viewpoint, incorrect. If it's not specified the value should be the same as the value for the parent element.
 
Regards,
-yves

 



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