Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Problem/Help - XSL - Stylesheet - Invalid?
Today | Me

Posted on 06/07/2008 9:24:43 PM PDT by dila813

I have this style sheet out of my text book, I put it in the browser with the xml file identically to what is described in the book. Yet it doesn't work. Anyone spot what is wrong?

The error message is that this is not a style sheet and that line number 2 is wrong. I can't see how, and it matches the book.

Title Genre Year


TOPICS: Computers/Internet
KEYWORDS: xml; xsl
Any help is greatly appreciated.
1 posted on 06/07/2008 9:24:44 PM PDT by dila813
[ Post Reply | Private Reply | View Replies]

To: dila813
Well you didn't post a style sheet for us to look at. You posted an HTML table. The second row in that table is wrong as it contains only a single pair of TD tags. There should be three since the first and third rows have three, or else the single TD tag must include the qualifier COLSPAN=3.

HTH

2 posted on 06/07/2008 9:35:52 PM PDT by SeeSharp
[ Post Reply | Private Reply | To 1 | View Replies]

To: dila813

First things first...are you logged in?


3 posted on 06/07/2008 9:37:31 PM PDT by JRios1968 ("If you go over a cliff with all flags flying, you are still going over a cliff"--Ronald Reagan)
[ Post Reply | Private Reply | To 1 | View Replies]

To: SeeSharp
There are three td columns there
but your hint that there is html gives me some ideas to check. There is something wrong with this line "", I get the error message on this line.

4 posted on 06/07/2008 9:42:42 PM PDT by dila813
[ Post Reply | Private Reply | To 2 | View Replies]

To: dila813
This is what shows up in source:

<table bgcolor="white" border="2">
<tr>
<th>Title</th>
<th>Genre</th>
<th>Year</th>
</tr>
<tr>
<td>
</td>
</tr>
<tr>
<td>
</td>>
<td>
</td>
<td>
</td>
</tr>
</table><br clear="all" />

There is only one cell in the second row. You either have to add 2 more cells or COLSPAN=3

5 posted on 06/07/2008 10:01:44 PM PDT by jellybean (Write in Fred! - Proud Ann-droid and a Steyn-aholic)
[ Post Reply | Private Reply | To 4 | View Replies]

To: dila813

Which application did you use to create the style steet file?


6 posted on 06/07/2008 10:05:25 PM PDT by HAL9000 ("No one made you run for president, girl."- Bill Clinton)
[ Post Reply | Private Reply | To 1 | View Replies]

To: HAL9000

Besides the table problem, I’d imagine that they left out the code to invoke the style sheet, since there are several you can chose from. Try looking at the code from one that you know works.


7 posted on 06/07/2008 10:07:58 PM PDT by Gritty-Kitty
[ Post Reply | Private Reply | To 6 | View Replies]

To: HAL9000

Quanta

I found the answer, apparently the book I have uses an outdated version of xsl that my editor doesn’t support.

And firefox doesn’t support it either.

Thanks everyone.


8 posted on 06/07/2008 10:26:16 PM PDT by dila813
[ Post Reply | Private Reply | To 6 | View Replies]

To: jellybean

When I post it to freerepublic, it strips it out, but it is there.

don’t know how to keep freerepublic from trying to ready the code.


9 posted on 06/07/2008 10:27:24 PM PDT by dila813
[ Post Reply | Private Reply | To 5 | View Replies]

To: dila813
Sorry, I only do C/C++.

while (true)
   printf("This is an xsl stylesheet sucka!\n");

10 posted on 06/07/2008 10:41:26 PM PDT by TheWasteLand
[ Post Reply | Private Reply | To 1 | View Replies]

To: dila813
I don’t know how to keep freerepublic from trying to ready the code.

Try using this: http://www.accessify.com/tools-and-wizards/developer-tools/quick-escape/.

11 posted on 06/07/2008 10:56:19 PM PDT by Jeff Chandler (Given such dismal choices, I guess I'll vote for the old guy.)
[ Post Reply | Private Reply | To 9 | View Replies]

To: Jeff Chandler
Testing 123...

<img src=\"http://homepages.roadrunner.com/andyandval/danratherelection.jpg \" >

12 posted on 06/08/2008 3:50:27 AM PDT by andyandval
[ Post Reply | Private Reply | To 11 | View Replies]

To: Jeff Chandler

cool tip, thanks


13 posted on 06/17/2008 10:31:30 PM PDT by dila813
[ Post Reply | Private Reply | To 11 | View Replies]

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson