[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to put space between two characters?
But how can I add <!DOCTYPE xsl:stylesheet [ > <!ENTITY nbsp " "> <!--known for HTML output, > not in XML--> > ]> to my stylesheet?Do I've to make a seperate doctype?I'm sorry but I'm getting a little confused. My stylesheet is: <?xml version='1.0' encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:key name="data" match="GrantNet" use="NameOfForm" /> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="dataroot"> <HTML> <HEAD> <TITLE>External Agency Forms</TITLE> </HEAD> <BODY> <A NAME="TOP"/> <p align="left"><font color="#004080" face="Times New Roman"><B><big><big>FORMS</big></big></B></font></p> <p align="left"><font color="#004080" face="Times New Roman"> <xsl:for-each select="//GrantNet[generate-id(.)=generate-id(key('data',NameOfForm))]"> <xsl:sort select="NameOfForm" order="ascending"/> <a href="#{generate-id(NameOfForm)}"><big><xsl:value-of select="NameOfForm"/></big></a><br/> </xsl:for-each> </font></p><hr/> <xsl:for-each select="//GrantNet[generate-id(.)=generate-id(key('data',NameOfForm))]"> <xsl:sort select="NameOfForm" order="ascending"/><br/> <B><strong><font color="#000080"><big><big> <a name="{generate-id(NameOfForm)}"> <xsl:value-of select="NameOfForm"/> </a> </big></big></font></strong></B> <xsl:for-each select="key('data',NameOfForm)"><xsl:text> </xsl:text> <xsl:text> </xsl:text> <a href="{From_ORSP_Server}"><img alt="NewPDF.gif" border="0" height="25" src="NewPDF.gif" width="25"/></a><xsl:text> </xsl:text><xsl:text> </xsl:text> <xsl:text> </xsl:text> <a href="{From_Granting_Agency}"><img alt="NewPDF.gif" border="0" height="25" src="NewPDF.gif" width="25"/></a><br/> <br/><big>Description:</big> <xsl:value-of select="Description"/><br/><br/><hr/> </xsl:for-each> </xsl:for-each> <p><center><a href="#TOP"><img alt="top.gif" border="0" height="31" src="top.gif" width="81"/></a></center></p> </BODY> </HTML> </xsl:template> </xsl:stylesheet> I want to add space between the images so they're atleast a little apart. Regards, Puja --- "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote: > At 2004-04-06 06:51 -0700, puja thakral wrote: > >Actually XSL doesn't recognise  . > > It will if you add it to your stylesheet ... it just > isn't built-in. > > ><xsl:text> > ></xsl:text> works and creates only one white space > and > >not more then that.I want to have sufficient white > >space between my two images as they're very close > to > >each other.Any suggestions? > > An XSLT stylesheet is just an XML document, so just > add it to your XML > document: > > <!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:stylesheet> > > Since the XSLT processor uses for this > character when emitting HTML > output, you will get what you want. > > I hope this helps. > > ...................... Ken > > -- > Public courses: Spring 2004 world tour of hands-on > XSL instruction > Each week: Monday-Wednesday: XSLT/XPath; > Thursday-Friday: XSL-FO > Hong Kong May 17-21; Bremen Germany May 24-28; > Helsinki June 14-18 > > World-wide on-site corporate, govt. & user group > XML/XSL 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 Breast Cancer Awareness > http://www.CraneSoftwrights.com/s/bc > __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|