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

RE: spaces in output html

Subject: RE: spaces in output html
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 30 Jan 2002 09:13:27 -0000
spaces in html
[b] should work. [a] and [c] shouldn't, because all you've done is to invent
elaborate ways of creating a whitespace-only text node in the styelsheet,
which the XSLT processor will always ignore.

If [b] doesn't work, then one possible reason is that you are using
Microsoft's MSXML3 and built the stylesheet without using
preserveSpace=true, so the whitespace within the <xsl:text> element will
have been eliminated by the DOM parser before the XSLT processor gets to see
it.

Mike Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of jasonp
> Sent: 30 January 2002 07:42
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  spaces in output html
>
>
> gidday all,
>
> I have a list of <InternalLinks/> that are required to have a space
> between them when they are output linearly (html output).
> I have a problem with spaces in html output not appearing.
> The reult is that all my links come out joined up...
>
> I have tried:
> [a]
> <xsl:template match="InternalLink">
>   <xsl:call-template name="doLinkPlain"/>&#032;
> </xsl:template>
>
> and
> [b]
> <xsl:template match="InternalLink">
>   <xsl:call-template name="doLinkPlain"/><xsl:text> </xsl:text>
> </xsl:template>
>
> and
> [c]
> <xsl:template match="InternalLink">
>   <xsl:call-template name="doLinkPlain"/><xsl:text
> disable-output-escaping="yes"><![CDATA[ ]]>
> </xsl:template>
>
> I have tried different varieties of strip-space and
> preserve-space, but
> nothing seesm to work - what am I doing wrong?
>
> Regards,
> JasonP
>
> --
> _.-~-._.-~-._.-~-._.-~-._.-~-._.-~-.
>  Jason Pluis
>  Analyst/Programmer
>  Wizard Information Services
>  Email: jason.pluis@xxxxxxxxxxxxxxx
> _.-~-._.-~-._.-~-._.-~-._.-~-._.-~-.
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


Current Thread
  • spaces in output html
    • jasonp - Wed, 30 Jan 2002 02:37:33 -0500 (EST)
      • Michael Kay - Wed, 30 Jan 2002 04:11:45 -0500 (EST) <=
      • <Possible follow-ups>
      • jasonp - Wed, 30 Jan 2002 18:36:56 -0500 (EST)

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.