[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

VERY special characters :)

Subject: VERY special characters :)
From: Mikael Karpberg <karpen@xxxxxxxxxxxxx>
Date: Thu, 17 May 2001 17:12:50 +0200
mikael karpberg
Hello!

I have now looked through the FAQ at:
 http://www.dpawson.co.uk/xsl/xslfaq.html

And althought it was a rather enlightening and interesting experience,
and quite comprehensive, I can't really find anything directly relevant
to what I want.

Short version:

I want to output a control-character (0x00-0x1f) with output method "text".
It's not letting me... :(


Long version:

I'm trying to generate a java file from an xml file, by running the
xml file through XSLT with a .xsl document to transform it. The input
XML file is perfectly fine xml. The problem is in the .xsl document.

I have this setting in my .xsl file:
  <xsl:output encoding="ISO_8859-1" omit-xml-declaration="yes"
              method="text" />

I tried to do this by doing the following in my xxx.xsl file
to get a form-feed:
  <xsl:text>&#12;</xsl:text>

...but this is not a valid XML character, I'm informed. 

Well... I don't care! :) I want a form-feed in my java file. Period.
Now I'm wondering, how do I do that? Please tell me I _can_ do it :-\

And now for something not complete different... :)

Another interesting thing I found while playing around with this was
that the statement in the XSLT spec does not really apply as stated
(at least for apache's "xalan-J") when it says that "text" output
mode does not escape characters (is says so in the
"disable-output-escaping" help on the <xsl:text> tag)... Proof:

If i instead of my illegal "&#12;" put a "&#167;", to get a paragrah
sign, it is gladly swallowed. I get out "&#167;" in the output document,
however, and not a paragraph sign as expected with my settings
of encoding="ISO_8859-1" and method="text"! :-(

Could anyone explain that to me? 

Regards,
  /Mikael

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.