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]
Re: [xml-dev] Is there a short string that is commonly used torepresent "/>"?



On Sat, 19 Feb 2022 at 13:03, Roger L Costello <costello@mitre.org> wrote:
Hi Folks,
 

For many relational operators there is a short string that represents the operator, e.g.,

        <=      le
        !=      ne

It isn't clear what system you are referring to here?  xpath has four operators <=, le, != and ne, but they are four different comparison operators,  which will give four different results, one is not a "short string" referring to the other (especially as all four names have length 2)


In XML there is a short string that represents reserved symbols, e.g.,

        &       amp
        <       lt

well it has two (of 5) predefined entity references amp and lt, yes.
 

Consider this empty XML element:

        <Test/>

The "/>" symbol indicates the element is empty.

/> isn't really a separate symbol it's just part of the syntax of an empty tag, started by <





Is there a short string that is commonly used to represent the symbol that indicates the element is empty?

        />      ???


If you parse XML as SGML using the xml declaration eg
https://github.com/hoehrmann/SGML-Parser-OpenSP/blob/master/samples/xml.dcl

then />  comes about due to the declarations

NESTC "/"
NET ">"

but I don't think anyone would call "NESTC (net-enabling start tag close) delimiter" a "short string" or "commonly used"



/Roger

 
David
 
_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



[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