User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the XML, XSLT and XPATH section within the Software Development category of DaniWeb, a massive community of 374,004 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,759 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our XML, XSLT and XPATH advertiser:
Views: 727 | Replies: 0 | Solved
Reply
Join Date: Mar 2006
Posts: 28
Reputation: musicmancanora4 is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
musicmancanora4 musicmancanora4 is offline Offline
Light Poster

value-of select and <h1> tag

  #1  
May 1st, 2008
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.


language XML Syntax (Toggle Plain Text)
  1. <xsl:template match="/">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>
  5. Phil's Bike Store
  6. </title>
  7. <link href="Store.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9.  
  10. <body>
  11.  
  12. <h1>Phil's Bike Store</h1>
  13.  
  14.  
  15. <p>
  16. <a href="#Road Bikes">Road Bikes</a>|
  17. <a href="#MTB Bikes">MTB Bikes</a>
  18. <a href="#clothing">clothing</a> |
  19. <a href="#Lights">Lights</a> |
  20. <a href="#Parts and Accesories">Parts andAccesories</a>
  21. </p>
  22.  
  23.  
  24. <xsl:value-of select="Catalog/Product_Type/Name">
  25. </xsl:value-of>
  26.  
  27.  
  28. </body>
  29. </html>
  30.  
  31.  
  32. </xsl:template>
  33.  
  34. </xsl:stylesheet>
  35.  
  36.  
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb XML, XSLT and XPATH Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the XML, XSLT and XPATH Forum

All times are GMT -4. The time now is 10:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC