Subject: Re: [xsl] xml:space preserve on element converted to html textarea encoding issue From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 07 Jun 2011 12:50:08 -0400 |
So I converted writing the textarea out using CDATA sections and still the tag is collapsed! I was certain that this would not be the case, so that is a little confusing.
So then I thought maybe I can sneak the into the output in my closing textarea like this:
<xsl:text disable-output-escaping="yes"><![CDATA[ </textarea>]]></xsl:text>
And this does work.
Although, the non-breaking space character isn't really what I want either, I really need<textarea></textarea> with no white space and the tag not collapsed.
So the dilemna with the encoding is this: the master stylsheet is generating either an FO or HTML. I've been writing everything out to FO as UTF-8, so now I would need to switch between the two, but can not, not without calling two different templates, one to produce HTML and the other to produce FO. As is, the system calling the stylesheet is passing a param specifiying either of the two output types.
I did test US-ACII encoding and that works great two. So given the nature of my system (1 stylesheet) am I stuck writing out the textarea the long way as I have?
Cheers, Wendell
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml:space preserve on ele, Karl Stubsjoen | Thread | Re: [xsl] xml:space preserve on ele, David Carlisle |
Re: [xsl] xml:space preserve on ele, Karl Stubsjoen | Date | Re: [xsl] xml:space preserve on ele, Michael Kay |
Month |