Subject: Re: Newbie Needs Help From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx> Date: Thu, 17 Dec 1998 18:46:44 +0200 |
Robert W. Hackenfort <rhackenfort@xxxxxxxxxx> wrote: >Just starting out in XML and XSL and tried to do a very simple document. > >The XML is: > ><?xml version="1.0"?> ><?xml:stylesheet type="text/xsl" href="test.xsl"?> > ><greeting>Hello XSL!</greeting> > >and the XSL is: > ><xsl:stylesheet >xmlns:xsl="http//www.w3.org/TR/WD-xsl" >xmlns:fo="http//www.w3.org/TR/WD-xsl/FO" result-ns="fo"> > <xsl:template match= "greeting"> > <fo:block color="red" font-size="16pt"> > <process-children/> > </fo:block> > </xsl:template> ></xsl:stylesheet> Which produces a blank result, since matching on the top-level element can only done by using match="/" regardless of the actual element type which appears there. "It made sense at the time" - it probably still does when viewing it in the right way. It makes for an excellent FAQ question (if we had a FAQ, that is) - it seems every new XSL user goes through finding this out the hard way. Share & Enjoy, Oren Ben-Kiki XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Newbie Needs Help, Keith Visco | Thread | Re: Newbie Needs Help, Steve Dahl |
RE: CSS, XSL & "Religious Schisms" , Markor, John (Non-HP | Date | Re: alternating tags in a list?, Paul Prescod |
Month |