Out of the XML recomendation,section 2.2:

        A character is an atomic unit of text as specified by ISO/IEC 10646 [ISO10646]. Legal characters are tab,
carriage return, line feed, and the legal graphic characters of Unicode and ISO/IEC 10646.

or, more clearly:

        Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
         /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */


That means  "-", "#12235" , etc are characters, while "'1'" is not.


=============================================
Marcelo Jaccoud Amaral
Petrobrás (http://www.petrobras.com.br)
mailto:[EMAIL PROTECTED]
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=============================================
There are only 10 kinds of people in the world: those who understand binary and those who don't.



Tony Graham <[EMAIL PROTECTED]>

27/09/2002 14:26
Favor responder a fop-dev

       
        Para:        [EMAIL PROTECTED]
        cc:        
        Assunto:        Re: <character>



Peter B. West wrote at 28 Sep 2002 00:39:34 +1000:
...
> Tony Graham wrote:
...
> > Section 5.11, Property Datatypes, trumps the individual property
> > definitions, since Section 5.11 defines "the syntax for specifying the
> > datatypes usable in property values".  It says "A single Unicode
> > character."
>
> Ok, so it's a character.  How, then, is it represented?  Is it also a
> <string> (of length one), or is it just a literal (length 1), or just an
> NCName (length 1), or is it something else?  What does it look like, and
> how is the parser going to handle it?

A character is a character, and you should go to XML 1.0 for the
definition of a character.

Also, "parser" is ambiguous in this context as well as having no XML
or XSL meaning.  XML defines an XML processor, which is often called a
"parser" for historical reasons, and the XSL Recommendation uses
"parse" without designating a thing called a "parser".

> ...
>
> >  > So IMO the spec is currently very vague on this.
> >
> > Then write to [EMAIL PROTECTED] asking for a clarification.
>
> Nice dry wit you have Tony.

That was a serious suggestion.  You do get an answer eventually, even
if you don't like the answer.

Regards,


Tony Graham
------------------------------------------------------------------------
XML Technology Center - Dublin                mailto:[EMAIL PROTECTED]
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



Reply via email to