[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:attribute problem

Subject: Re: xsl:attribute problem
From: Jens Laufer <jens@xxxxxxxxxxxxxx>
Date: Mon, 2 Dec 2002 16:35:06 +0100
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">&lt;?</xsl:text><xsl:value-of 
select='./@language'/><xsl:text> </xsl:text><xsl:value-of 
select='.'/><xsl:text disable-output-escaping="yes">?&gt;</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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.