cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Cordes <mcord...@maine.edu>
Subject Re: question about XSL
Date Mon, 04 Sep 2000 20:30:19 GMT
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
> 

Mime
View raw message