|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to call a href?
Thanks for the tip Kay. But when I do what you suggested: href={@href}
<mailto:{@href}>
It comes up literally as {@href} <mailto:{@href}> , instead of the value at
href. I'm not sure why.
So to get around it I thought I might try to go around that and build the
href in the XSL. Since the first part of the URL will always be the same as
that of the current page, I just need a way to access the node name and its
text when I call href.
Example XML:
<Author>Smith J</Author>
Example XSL:
<a class="hop" href="./Query={xsl:node-name}:{xsl:textnode()}"
onclick="return false">
<SPAN class="b"><xsl:entity-ref name="nbsp"/></SPAN>
<xsl:value-of select="textNode()"/>
</a>
So that it will produce an href of the base URL and "Query=Author:Smith J"
appended to the end of it.
I know that {xsl:node-name}{xsl:textnode()} does not work, but I'm not sure
what will. Is it possible to do something like this?
Thanks in advance.
---------------------------------------
Kara Lee
Applied Technical Systems
karal@xxxxxxxxxxxxxx <mailto:karal@xxxxxxxxxxxxxx>
http://www.apptechsys.com <http://www.apptechsys.com>
CCM Technology Demo:
http://www.apptechsys.com/ccm <http://www.apptechsys.com/ccm>
---------------------------------------
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
|

Cart








