xsl-list
[Top] [All Lists]

Re: [xsl] U+0007

2010-01-21 18:52:44
On 22.01.2010 01:21, Michael Kay wrote:
Alternatively, you can output characters that are disallowed in XML by using
the processing instruction

<xsl:processing-instruction name="hex.ascii" select="'07'"/>

together with<xsl:output saxon:recognize-binary="yes"/>

Oh, I'm amazed by the depth of options -- still discovering pages such as http://www.saxonica.com/documentation/extensions/output-extras/recognize-binary.html

But this PI is only useful when using the text output method. I won't forsake the benefits of getting proper XML for this pseudo-bell. (Ok, I might postprocess the output, but you know how stubborn and dogmatic converts are: I want to use XSLT 2.0 and not Perl.)


#7 is actually the BEL character - in my youth, if you sent it to a
teletype, it rang the bell (a real bell, not just an electronic beep). Using
it to mean "indent to here" seems to be code abuse.

In my youth and still now, Ctrl-G produces beeps on some terminals. So I share the view that 'indent to here' is code abuse, even nowadays.

From your statement in conjunction with 'Bell codes are usually represented by the label "BEL" and have been used since 1870.' [1] I conclude that you are no older than approx. 160 (U+A0) years.

Gerrit

[1] http://en.wikipedia.org/wiki/Bell_character


Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay

-----Original Message-----
From: Imsieke, Gerrit, le-tex [mailto:gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de]
Sent: 21 January 2010 23:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] U+0007

Dear List Members,

I need to output<xsl:text>&#7;</xsl:text>  for InDesign (see
http://www.indiscripts.com/blog/public/data/idcs4-special-char
acters/en_InDesignCS4SpecialChars.pdf#page=2
-- it's the 'Indent to Here' metacharacter).

Saxon or rather the parser tells me:
    SXXP0003: Error reported by XML parser: Character
reference "&#7" is an invalid XML character.

But http://www.fileformat.info/info/unicode/char/7/index.htm
tells me that's a Unicode character, and so does
http://www.unicode.org/charts/PDF/U0000.pdf.

&#9; is no problem at all, for example.

Wil xsl:character-map help in some way?

Any help appreciated.

Gerrit


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit(_dot_)imsieke(_at_)le-tex(_dot_)de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>