> -----Original Message-----
> From: Tony Graham [mailto:[EMAIL PROTECTED]]
> Sent: September 30, 2002 10:09 AM
> To: [EMAIL PROTECTED]
> Subject: Re: <character>
>
> Peter B. West wrote at 30 Sep 2002 13:28:18 +1000:
>  > Tony Graham wrote:
>  > > [EMAIL PROTECTED] wrote at 27 Sep 2002 16:44:32 -0300:
> ...
>  > >  > That means  "-", "#12235" , etc are characters, while
> "'1'" is not.
>  > >
>  > > &#12235; is a character reference.  '#12235' is how you talk about a
>  > > character's code point, although the hexadecimal representation is
>  > > usually preferable.
>  > >
>  > > In XSL terms, "'1'" is a one-character string literal, but while you
>  > > could claim that it is one character, there's no XSL
> conversion from a
>  > > string to a character, so <fo:character character="'1'"/>
> should fail.
>  >
>  > Tony,
>  >
>  > I don't think this gets us out of difficulty.  A casual inspection
>
> Forgive me, but I wasn't trying to get anybody out of any difficulty,
> I was just trying to keep the terminology accurate.
>
> ...
>  > So how do I represent a character?
>  >
>  > To me, the cleanest, least ambiguous way is to represent a <character>
>  > attribute assignment value with "'<character>'" - a string literal of
>  > length 1.
>
> Except that you know that that's not specified among the allowed
> conversions.
>
> The interesting thing is that 'character' doesn't appear in the
> productions in Section 5.9, Expressions, of the XSL Recommendation.
> Now there's a question for [EMAIL PROTECTED]!
>
> I think that you represent a character as a single character, e.g.,
> character="c", or as a numeric character reference, e.g.,
> character="&#xA;".

I agree with this last, after having digested everything.

Point is well taken that we have some points to nitpick with xsl-editors,
mostly about disambiguating some of the language.

Arved Sandstrom


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

Reply via email to