RE: [xsl] implementation of xsl:strip-space

Subject: RE: [xsl] implementation of xsl:strip-space
From: "Wright, Steve" <Steve.Wright@xxxxxxx>
Date: Mon, 27 Jan 2003 14:43:23 -0500
Hi Sherzod. Thanks for the suggestion, unfortunately, I'm already using
indent="no" in my output statement, I tried toggling it to "yes" just to
make sure it was working, and it is. But I'm still getting the carraige
returns.. Here's the xsl code that I'm trying to get to output w/o returns:
-----------------------------------------------------
<xsl:template match="FIG">	
<br clear="all"/>		
<table cellpadding="5" cellspacing="0" border="0" width="210" align="right">
<xsl:for-each select="FILENAME">
<xsl:variable name="imagefilename"><xsl:value-of select="."
/></xsl:variable>
<xsl:variable name="imagelabel"><xsl:value-of
select="substring-before($imagefilename, '.')" /></xsl:variable>
<tr><td valign="top"  class="text">
<a>
<xsl:attribute name="href">
<xsl:text>javascript:bigFig('</xsl:text>
<xsl:value-of select="$imagelabel" />
<xsl:text>','../fig/big/</xsl:text>
<xsl:value-of select="$imagefilename" />
<xsl:text>','</xsl:text>
<xsl:value-of select="$imagelabel" />
<xsl:text>');</xsl:text>
</xsl:attribute>
<img border="0">
<xsl:attribute name="src">
<xsl:text>../fig/thm/</xsl:text>
<xsl:value-of select="$imagefilename" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$imagelabel" />
</xsl:attribute>
<xsl:attribute name="name">
<xsl:text>my</xsl:text>
<xsl:value-of select="$imagelabel" />
</xsl:attribute>
</img>
</a>
<br/>
</td>
</tr>
</xsl:for-each>						
</table>
</xsl:template>
-----------------------------------------------------

Thanks in advance for any more ideas you may have.

-s

-----Original Message-----
From: Sherzod Ruzmetov [mailto:xslt@xxxxxxxxxxxx]
Sent: Monday, January 27, 2003 10:51 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] implementation of xsl:strip-space


    :
    :I have it as a child of the stylesheet, and I'm not getting
    :any errors.. I
    :was under the assumption that this was something I could use
    :to get my html
    :output to be like a block of code w/ no carraige returns.
    :Maybe I'm using
    :the wrong tool for this. Can you suggest another approach?..
    :The problem I'm
    :having is that my javascript event handlers are breaking due
    :to carraige
    :returns.

Did u try <xsl:output method="html" indent="no" />? Should do the trick.
For example, check out http://vs.handalak.com/xml/default.xml .
It has lots of JavaScript event handlers, and works fine without a glitch
(so far, at least).

Sherzod

P.S. I'm using libxml2 and libxslt




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


****************************************************************************
This email may contain confidential material.
If you were not an intended recipient, 
please notify the sender and delete all copies.
We may monitor email to and from our network.

****************************************************************************



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


Current Thread