Re: [xml-dev] Is there a short string that is commonly used to represent "/>"?

From
David Carlisle <>
To
Roger L Costello <>
Date
2022-02-19T15:30:27Z
ID
<>
Thread
Re: [xml-dev] Is there a short string that is commonly used to represent "/>"?


On Sat, 19 Feb 2022 at 13:03, Roger L Costello <[email protected]> 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

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: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php