Subject: Re: [xsl] xsl:attribute problem From: Jens Laufer <jens@xxxxxxxxxxxxxx> Date: Mon, 2 Dec 2002 16:35:06 +0100 |
> > Without seeing the source xml or the stylesheet that produced that > output I could only guess at what is happening... > > ...and I would guess that you have some presentational whitespace > creeping in from the template that produces it, something like: > > <a> > <xsl:attribute name="href"> > mailto: > <xsl:apply-templates select="email"/> > </xsl:attribute> > > Which means there are a number of ways to solve this, with the best > being: > > <a> > <xsl:attribute name="href"> > <xsl:text/>mailto:<xsl:apply-templates select="email"/> > </xsl:attribute> > > > It would be easier if I didnt have to guess though - others simply wont > reply to an underspecified question. > > cheers > andrew > Hi Andrew, sorry for any inconvenience: I could solve it now like that . . . <xsl:strip-space elements="*"/> . . . <xsl:template match='script'> <xsl:text disable-output-escaping="yes"><?</xsl:text><xsl:value-of select='./@language'/><xsl:text> </xsl:text><xsl:value-of select='.'/><xsl:text disable-output-escaping="yes">?></xsl:text> </xsl:template> .. With xsl:strip-space I get rid of the spaces.... Thnaks a lot for your help. Regards, Jens XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xsl:attribute problem, Andrew Welch | Thread | Re: [xsl] xsl:attribute problem, Kenneth Prat |
Re: [xsl] xsl:attribute problem, Kenneth Prat | Date | [xsl] how to group nodes by id?, Artur Matysiak |
Month |