[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Newbie Needs Help

Subject: Re: Newbie Needs Help
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Thu, 17 Dec 1998 18:46:44 +0200
oren needs
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.