XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Representing the components of a string in XML -- should delimitersbe represented?

Hi Folks,

 

I am creating an XML representation of the UNIX printf conversion specifier. Here is a sample conversion specifier and its components:

 

 

% and . are delimiters. Should they be represented in XML?

 

Which of the following XML representations is better?  If you assert that one is better than another, please explain – in simple, concrete terms – why it is better?

 

(a) Does not represent the delimiters in XML:

 

<conversion_specification>

    <flag>+</flag>

    <width>7</width>

    <precision>3</precision>

    <specifier>d</specifier>

</conversion_specification>

 

(b) Does represent the delimiters in XML:

 

<conversion_specification>

    <start_of_specifier>%</start_of_specifier>

    <flag>+</flag>

    <width>7</width>

    <start_of_precision>.</start_of_precision>

    <precision>3</precision>

    <specifier>d</specifier>

</conversion_specification>

 

/Roger

 

 

 

 



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS