DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   XML, XSLT and XPATH (http://www.daniweb.com/forums/forum134.html)
-   -   value-of select and <h1> tag (http://www.daniweb.com/forums/thread121901.html)

musicmancanora4 May 1st, 2008 7:15 am
value-of select and <h1> tag
 
Hey guys with regards to <xsl:value-of select="Catalog/Product_Type/Name"> how would
i put that in a <h1> html tag which is defined in my css file.

<h1><xsl:value-of select="Catalog/Product_Type/Name"></h1>
i get errors in xalan when i do that? The results of the value-of select i want it
to be in a different font which is defined as <h1> in my css.


<xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>
                        Phil's Bike Store
                </title>
<link href="Store.css" rel="stylesheet" type="text/css"/>
        </head>

        <body>
                       
        <h1>Phil's Bike Store</h1>

       
        <p>
        <a href="#Road Bikes">Road Bikes</a>|
        <a href="#MTB Bikes">MTB Bikes</a>       
        <a href="#clothing">clothing</a>    |
        <a href="#Lights">Lights</a>        |
        <a href="#Parts and Accesories">Parts andAccesories</a>
        </p>
                               
                               
        <xsl:value-of select="Catalog/Product_Type/Name">
        </xsl:value-of>
                               
                               
        </body>
        </html>

               
        </xsl:template>

</xsl:stylesheet>
       


All times are GMT -4. The time now is 10:09 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC