Subject: Re: [xsl] Entity Problems... From: "Nick Shepherd" <nick@xxxxxxxxxxxxxxxx> Date: Fri, 17 Aug 2007 12:25:00 -0400 |
this solution in my xml document solved the problem. What's odd is I thought I had tried this before and always came up with the same errors. Oh well, what wasn't working before is working now. Thanks tons guys... Nick On 8/17/07, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > At 2007-08-17 12:09 -0400, Nick Shepherd wrote: > >Now to my question, although basic compared to the questions generally > >asked on this list, is there any way to prevent these entities from > >producing errors? We've come to a point with one of our products that > >allows users to create their own websites and this type of > >functionality is needed because the rich text editor of choice loves > >to throw " " everywhere (tiny mce). Any ideas? > > All you have to do is teach the processor about the entity. > > >Or alternatives > >to the rich text editor that would allow non-techy users to edit the > >look and feel of their content on their sites? > > This is what I give my students: > > <?xml version="1.0"?> > <!DOCTYPE xsl:stylesheet [ > <!ENTITY nbsp " "> <!--known for HTML output, not in XML--> > ]> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > <xsl:output method="html"/><!--use hardwired browser entities--> > <xsl:template match="/"> > ... > <xsl:text>Module: </xsl:text> > ... > </xsl:template> > > I hope this helps. > > . . . . . . . . . Ken > > -- > Upcoming public training: XSLT/XSL-FO Sep 10, UBL/code lists Oct 1 > World-wide corporate, govt. & user group XML, XSL and UBL training > RSS feeds: publicly-available developer resources and training > G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ > Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) > Male Cancer Awareness Jul'07 http://www.CraneSoftwrights.com/s/bc > Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Entity Problems..., G. Ken Holman | Thread | Re: [xsl] Entity Problems..., Abel Braaksma |
Re: [xsl] Entity Problems..., G. Ken Holman | Date | RE: [xsl] Entity Problems..., Angela Williams |
Month |