|
|
 |
| 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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

January 12th, 2008, 09:30 PM
|
|
Authorized User
|
|
Join Date: Jan 2008
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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>
|

January 12th, 2008, 09:46 PM
|
 |
Friend of Wrox
Points: 16,368, Level: 55 |
|
|
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,394
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
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
|

January 13th, 2008, 02:43 AM
|
|
Authorized User
|
|
Join Date: Jan 2008
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ah nvm, I had an error in my css file that caused it to act funny.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |