Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 12th, 2008, 09:30 PM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default class names in xslt not working

Hi, I am transforming an XML file to html and in my xslt stylesheet I have css class names on certain html elements, but styles using class names don't seem to work. It works if I use element names and not class names... Does anyone know what is going on? Thanks in advance:

Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <xsl:output method="html" indent="yes"/>

  <xsl:template match="/">
    <xsl:apply-templates select="//ItemAttributes" />
  </xsl:template>

  <xsl:template match="ItemAttributes">
    <ol class="product">
      <li><xsl:value-of select="Author"/></li>
    </ol>
  </xsl:template>

</xsl:stylesheet>
Reply With Quote
  #2 (permalink)  
Old January 12th, 2008, 09:46 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you elaborate on "don't seem to work"?
(Please review the "help" thread in this forum if needed: http://p2p.wrox.com/topic.asp?TOPIC_ID=49630)

-Peter
Reply With Quote
  #3 (permalink)  
Old January 13th, 2008, 02:43 AM
Authorized User
 
Join Date: Jan 2008
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah nvm, I had an error in my css file that caused it to act funny.



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EventUtil class not working in web server KelRegor BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 December 26th, 2007 09:50 AM
XSLT For Each - Field Names lahatfield XSLT 6 May 15th, 2007 06:33 AM
Working with a class absolutezero Classic ASP Basics 0 August 18th, 2005 11:30 PM
how to get xml tag names in xslt mdawoodk XSLT 8 March 14th, 2005 05:55 AM
.syntax not working with class stephen_c_ Javascript 3 January 19th, 2005 07:21 AM



All times are GMT -4. The time now is 10:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.