You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Drasko Kokic <dr...@yahoo.com> on 2000/09/04 19:57:45 UTC
question about XSL
Would anbody know on top of their head ho to write
this properly?! I need to specify a value of the node
inside my href parameter string:
<xsl:template match="STOCKS/ROWSET/ROW">
<A href="stockInfo.xml?symbol=<xsl:value-of
select="SYMBOL"/>><xsl:value-of select="SYMBOL"/></A>;
</xsl:template>
I know why it doesn't work, but have no idea how to
solve it.
Cheers
Drasko
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
Re: question about XSL
Posted by Matthew Cordes <mc...@maine.edu>.
Sorry to reply to my own email, but I left in a slash inadvertantly.
Here is the correct code:
<xsl:template match="STOCKS/ROWSET/ROW">
<A href="stockInfo.xml?symbol={SYMBOL}">
<xsl:value-of select="SYMBOL"/>
</A>;
</xsl:template>
-matt
On Mon, Sep 04, 2000 at 04:11:56PM -0400, Matthew Cordes wrote:
> Try this ( assuming SYMBOL is a child of your ROW element):
>
> <xsl:template match="STOCKS/ROWSET/ROW">
> <A href="stockInfo.xml?symbol={SYMBOL}"/>
> <xsl:value-of select="SYMBOL"/>
> </A>;
> </xsl:template>
>
> This is called an Attribute Value Template. For more info read the
> spec, the xsl list ( http://www.mulberrytech.com/xsl/xsl-list ), or
> the xsl faq ( http://www.dpawson.co.uk ).
>
> -matt
>
>
>
> On Mon, Sep 04, 2000 at 10:57:45AM -0700, Drasko Kokic wrote:
> > Would anbody know on top of their head ho to write
> > this properly?! I need to specify a value of the node
> > inside my href parameter string:
> >
> > <xsl:template match="STOCKS/ROWSET/ROW">
> > <A href="stockInfo.xml?symbol=<xsl:value-of
> > select="SYMBOL"/>><xsl:value-of select="SYMBOL"/></A>;
> > </xsl:template>
> >
> > I know why it doesn't work, but have no idea how to
> > solve it.
> >
> > Cheers
> > Drasko
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
Re: question about XSL
Posted by Matthew Cordes <mc...@maine.edu>.
Try this ( assuming SYMBOL is a child of your ROW element):
<xsl:template match="STOCKS/ROWSET/ROW">
<A href="stockInfo.xml?symbol={SYMBOL}"/>
<xsl:value-of select="SYMBOL"/>
</A>;
</xsl:template>
This is called an Attribute Value Template. For more info read the
spec, the xsl list ( http://www.mulberrytech.com/xsl/xsl-list ), or
the xsl faq ( http://www.dpawson.co.uk ).
-matt
On Mon, Sep 04, 2000 at 10:57:45AM -0700, Drasko Kokic wrote:
> Would anbody know on top of their head ho to write
> this properly?! I need to specify a value of the node
> inside my href parameter string:
>
> <xsl:template match="STOCKS/ROWSET/ROW">
> <A href="stockInfo.xml?symbol=<xsl:value-of
> select="SYMBOL"/>><xsl:value-of select="SYMBOL"/></A>;
> </xsl:template>
>
> I know why it doesn't work, but have no idea how to
> solve it.
>
> Cheers
> Drasko
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
Re: question about XSL
Posted by "David J. Manura" <dj...@Lehigh.EDU>.
Use the <xsl:attribute> tag:
<xsl:template match="STOCKS/ROWSET/ROW">
<A>
<xsl:attribute name="href">stockInfo.xml?symbol=<xsl:value-of
select="SYMBOL"/></xsl:attribute>
<xsl:value-of select="SYMBOL"/>
</A>;
</xsl:template>
> Would anbody know on top of their head ho to write
> this properly?! I need to specify a value of the node
> inside my href parameter string:
>
> <xsl:template match="STOCKS/ROWSET/ROW">
> <A href="stockInfo.xml?symbol=<xsl:value-of
> select="SYMBOL"/>><xsl:value-of select="SYMBOL"/></A>;
> </xsl:template>
>
> I know why it doesn't work, but have no idea how to
> solve it.
>
> Cheers
> Drasko
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
RE: question about XSL
Posted by Ed Staub <es...@mediaone.net>.
Use
<A><xsl:attribute name="href">stockInfo.xml?symbol=<xsl:value-of
select="SYMBOL"/></xsl:attribute></A>;
-Ed Staub
-----Original Message-----
From: Drasko Kokic [mailto:drasko_kokic@yahoo.com]
Sent: Monday, September 04, 2000 1:58 PM
To: cocoon-users@xml.apache.org
Subject: question about XSL
Would anbody know on top of their head ho to write
this properly?! I need to specify a value of the node
inside my href parameter string:
<xsl:template match="STOCKS/ROWSET/ROW">
<A href="stockInfo.xml?symbol=<xsl:value-of
select="SYMBOL"/>><xsl:value-of select="SYMBOL"/></A>;
</xsl:template>
I know why it doesn't work, but have no idea how to
solve it.
Cheers
Drasko
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org