|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Newbie Needs Help
-----Original Message-----
From: Paul Prescod <paul@xxxxxxxxxxx>
To: xsl-list@xxxxxxxxxxxxxxxx <xsl-list@xxxxxxxxxxxxxxxx>
Date: Thursday, December 17, 1998 2:56 PM
Subject: Re: Newbie Needs Help
>Oren Ben-Kiki wrote:
>>
>> 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 is impossible to match the top-level element by using "match='/'". That
>matches the root node, not the document ("top-level") element.
>
>You can and should match the document element with the "/".
>
>I agree with another poster that the real problem is with the fact that
>process-children is not prefixed with the namespace.
>
Example XSL source that works/doesn't work in IE5b2 using original post's
XML data (xsl:stylesheet element removed from examples):
DOESN'T WORK
<xsl:template match="greeting"><xsl:apply-templates/></xsl:template>
DOESN'T WORK
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
<xsl:template match="greeting"><xsl:apply-templates/></xsl:template>
DOES WORK- but displays xsl:stylesheet attributes
<xsl:template><xsl:value-of/></xsl:template>
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
<xsl:template match="greeting"><xsl:apply-templates/></xsl:template>
WORKS
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
<xsl:template match="greeting"><xsl:value-of/></xsl:template>
WORKS
<xsl:template match="/"><xsl:apply-templates/></xsl:template>
<xsl:template match="greeting"><xsl:get-value/></xsl:template>
Just another newbie trying to figure this out. Hope this helps another
newbie!
John Roth
MacKenzie & Roth, Inc.
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








