[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:attribute problem
> > 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
|
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
|