This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Using   in Stylesheets


You can use the numeric entity  

-----Original Message-----
From: Mike Hostetler [mailto:mikeh@nukeroad.net]
Sent: Friday, December 01, 2000 10:09 AM
To: xsl-list@mulberrytech.com
Subject: Re: Using   in Stylesheets


Hello,
--- Deirdre O'Brien <ddo@qad.com> wrote:
> 
> 
> I am trying to put tabs in my HTML output that is
> generated by a
> stylesheet.  The only way I know how to do this is to put
>   in the text.  I have tried this using
>      <xsl:text> </xsl:text> or on its own or within
> a <xsl:value-of
> select=" "/>
> 
> However when I run the stylesheet through the xalan
> processor I get an
> error saying
>      "The entity 'nbsp' was referenced but not declared."
> 
> Does anybody know how to solve this?
> Or is there another way I can get a tab to come out?
> 

We do something similar here - the XML files have "~nbsp"
(or another entity) in them.  After processing, those
"~nbsp"'s are in the HTML file.  After the XSLT is
processed, a substitution is made on the HTML file.  I have
a simple Python script that acts as a "wrapper" - it runs
the XSLT in a system call, and then runs the substitution 
on the HTML file.  The added processing time on it is
minimal.

If anyone has a better solution, I'd be glad to hear it.

Mike


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


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


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]