Thanks Rui,
I appreciate your efforts, but here is, I think, a better solution:
<xsl:attribute name="href">
<xsl:text></xsl:text>javascript:manageSLink('main-<xsl:value-of
select="$app"/>-<xsl:text></xsl:text>
<xsl:value-of select="$report_id"/>-<xsl:text></xsl:text>
<xsl:value-of select="$level"/>-<xsl:text></xsl:text>
<xsl:value-of select="$theme"/>
<xsl:text>?option=2&paths=</xsl:text><xsl:value-of
select="@paths"/>
<xsl:text>&level=</xsl:text><xsl:value-of
select="descendant::dimpath/@name"/>
<xsl:text>&in=</xsl:text><xsl:value-of select="$did"/>
<xsl:text>&dim=</xsl:text><xsl:value-of select="$curr"/>
<xsl:text>&refcube=</xsl:text><xsl:value-of
select="/page/navigator-response/response/@name"/>
<xsl:text>&sequence=</xsl:text><xsl:value-of
select="/page/navigator-response/@sequence"/>
<xsl:text>&maxrows=</xsl:text><xsl:value-of
select="$html_maxrows"/>
<xsl:text>&sortp=</xsl:text><xsl:value-of
select="$sfield"/>%20<xsl:value-of
select="$sorder"/>');<xsl:text></xsl:text>
</xsl:attribute>
CDias
----- Original Message -----
From: "Rui Alberto L. GonÃalves" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 5:42 PM
Subject: Re: Unwanted white spaces in <xsl:attribute>
> Try indenting,
> <xsl:element name="a">
> <xsl:attribute
> name="href">javascript:manageSLink('main-<xsl:value-of
> select="$app"/>-<xsl:value-of
> select="$report_id"/>-<xsl:value-of
> select="$level"/>-<xsl:value-of
> select="$theme"/>-
> ...
> </xsl:attribute>
>
> :)
>
> Rui
>
> On Thu, 2004-09-16 at 16:57, Patrick Verboom wrote:
> > Carlos Dias wrote:
> > > Hi!
> > > I know this is faq... but I hadn't found a nice solution for this
> > > kind of problems.
> > > My xslt is:
> > > <xsl:element name="a">
> > > <xsl:attribute name="href">
> > > javascript:manageSLink('main-<xsl:value-of
> > > select="$app"/>-
> > > <xsl:value-of select="$report_id"/>-
> > > <xsl:value-of select="$level"/>-
> > > <xsl:value-of select="$theme"/>
> > > <xsl:text>?option=2&paths=</xsl:text><xsl:value-of
> > > select="@paths"/>
> > > <xsl:text>&level=</xsl:text><xsl:value-of
> > > select="descendant::dimpath/@name"/>
> > > <xsl:text>&in=</xsl:text><xsl:value-of
> > > select="$did"/>
> > > <xsl:text>&dim=</xsl:text><xsl:value-of
> > > select="$curr"/>
> > > <xsl:text>&refcube=</xsl:text><xsl:value-of
> > > select="/page/navigator-response/response/@name"/>
> > > <xsl:text>&sequence=</xsl:text><xsl:value-of
> > > select="/page/navigator-response/@sequence"/>
> > > <xsl:text>&sortp=</xsl:text><xsl:value-of
> > > select="$sfield"/>%20<xsl:value-of select="$sorder"/>
> > > <xsl:text>&maxrows=</xsl:text><xsl:value-of
> > > select="$html_maxrows"/>');
> > > </xsl:attribute>
> > > </xsl:element>
> > >
> > > I was expecting to get something like:
> > > <a
> > >
href="javascript:manageSLink('main-altaia-trafego_pt-1-1?option=2&paths=&lev
el=&in=time&dim=time&refcube=1784060393&sequence=&sortp=year%20asc&maxrows='
);">Todos</a>
> > >
> > > But I get:
> > > <a
> > >
href="%0A%09%09%09%09%09%09%09%09%09%09%09%09javascript:manageSLink('main-al
taia-%0A%09%09%09%09%09%09%09%09%09%09%09%09%09trafego_pt-%0A%09%09%09%09%09
%09%09%09%09%09%09%09%091-%0A%09%09%09%09%09%09%09%09%09%09%09%09%091?option
=2&paths=&level=&in=time&dim=time&refcube=1784060393&sequence=&sortp=year%20
asc&maxrows=');%0A%09%09%09%09%09%09%09%09%09%09%09">Todos</a>
> > >
> > > Thanks in advanced,
> > > CDias
> > >
> > >
> > put it in a CDATA tag <![CDATA[]]> without enters just as one single
> > long line
> --
> Rui Alberto L. GonÃalves <[EMAIL PROTECTED]>
> PT InovaÃÃo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]