Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 12th, 2008, 09:30 PM
Authorized User
 
Join Date: Jan 2008
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>
 
Old January 12th, 2008, 09:46 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
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
 
Old January 13th, 2008, 02:43 AM
Authorized User
 
Join Date: Jan 2008
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.








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





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