|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Newbie Needs Help
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








