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


Help: OASIS Mailing Lists Help | MarkMail Help

xslt-conformance message

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

Subject: comparison current update - TEXT

Some update on comparison technique for TEXT method. 

We proceed with TEXT method similar as we do with XML output method. We
produce XML document ("infoset" of text) that contains only info about
original text relevant for comparison. For text it means that we drop
difference between platform dependant representation of line breaks.

original text document:

This is the text 
we want to 

This is corresponding "text infoset"

<text encoding="US-ASCII">
<line>This is the text </line>
<line>we want to </line>

Text infoset is always serialized in "UTF-8" leaving original encoding
info on the root node. 
Note: In the first version I propose to ignore encoding info when do
actual comparison. We can still put it for reference.
Note: Drawback of this approach is that there is no standard way to
create such infoset - though it is simple and achievable in any script
environment. Reason to produce XML as "text infoset" is to be able to
reuse same consistent "canonical" serialization method we use in XML

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

Powered by eList eXpress LLC