Re: [xslt] Problems with libxslt (or maybe I just don't get it?)



Solved my own problem.

Was using an old version of libxslt. At the ftp site just grabbed the last one listed (I was in a hurry). Of course 0.14 is the latest and that comes in the list before 0.2
Silly me :)

Crispin

On Thu, Jul 12, 2001 at 04:02:39PM +0800, crispin@iinet.net.au wrote:
> Hello,
> 
> Im a newbie to libxslt. Heres my prob...
> 
> compiled libxml2 fine no probs
> compiled libxslt fine no probs
> make test however spits a lot of errors out like the following...
> 
> xslt:value-of : select is missing
> xslt:value-of : select is missing
> xslt:variable : name is missing
> xslt:value-of : select is missing
> xslt:value-of : select is missing
> xslt:value-of : select is missing
> 
> So I decided to do my own testing. Take the following...
> 
> hello.xml
> ---------
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
> <greeting>Hello World.</greeting>
> 
> 
> hello.xsl
> ---------
> <?xml version="1.0"?>
> <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 	xsl:version="1.0">
> <head><title>Greeting</title></head>
> <body><p>Words of greeting:<br/>
> 	<b><i><u><xsl:value-of select="greeting"/></u></i></b>
> 	</p></body>
> </html>
> 
> Which is basically straight from www.xml.com/lpt/a/2000/08/holman/s2_1.html
> 
> Then with these two files I run xsltproc and I get the following...
> 
> $ xsltproc hello.xsl hello.xml 
> xslt:value-of : select is missing
> 
> Ok. So I start screwing with the style sheet, in particular the <xsl:value-of select="greeting"/>
> I change it to <xsl:value-of xsl:select="greeting"/>
> Then I try again
> 
> $ xsltproc hello.xsl hello.xml 
> <?xml version="1.0"?>
> <html><head><title>Greeting</title></head><body><p>Words of greeting:<br/><b><i><u>Hello World.</u></i></b></p></body></html>
> 
> Which is what it was meant to do.
> So my question is what is going on here? Why doesn't <xsl:value-of select="greeting"/> work properly? Is it the way I've built it? It never complained until the make test. All the test files specify it this way? WTF is going on?
> 
> Very confused, and appreciative of any experience anyone can offer.
> 
> Crispin
> 
> 
> _______________________________________________
> xslt mailing list
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]