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

<a class="..." href="..." problem

Subject: <a class="..." href="..." problem
From: Vincent Blondel <vincent@xxxxxxxxxxxx>
Date: Sun, 29 Jan 2006 11:59:39 +0100
a href class
Hi all,

I just began with xsl two days ago, so sorry for this maybe stupid
question.

I am trying to write some xsl stylesheets but I encounter some problems
with next xsl document. 

As you can see it in the "chapter" template section, I try to enumerate
all menu entries through two XPath nodes. <title> corresponds to the
label displayed on the web page and <url> corresponding to the link
pointing to the web page. 

This is working fine except the href variable. It seems I cannot insert
some <xsl:... /> tag into some double quotes being part of another tag.

How can I solve this problem ?

Regards 
Vincent

--------------
 index.xsl
--------------

<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
    version="2.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" encoding="iso-8859-1"

doctype-system="http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"
            doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN">
</xsl:output>

<xsl:template match="document">
    <html>
    <head>
        <title>
            <xsl:value-of select="title"/>
        </title>
    </head>
    <body>
        <div class="navigation">
            <xsl:apply-templates select="chapter"/>
        </div>
    </body>
    </html>
</xsl:template>

<xsl:template match="chapter">
    <a class="navigation" href="<xsl:value-of select="url"/>"
id="selected">
        <xsl:value-of select="title"/>
    </a>
</xsl:template>

</xsl:stylesheet>

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.