OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] How to print multiple spaces in my document with XSLT

[ Lists Home | Date Index | Thread Index ]

Collin wrote:
> HI, all:
>     I use XSLT to transform my XML document into a HTML document. I 've done every effort to have multiple spaces be printed in my browser, but I failed again and again.
>     If I used   in XSLT, it would say that   is an undefined entity. 

It is.

>     If I used  , it would print a space. 
>     And if I used     , then it would print only one space.

Have you wrapped those in a <xsl:text> element?

Also, you may want to check out xml:space="preserve".

Cheers,

Manos





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS