Subject: Re: Newbie Needs Help From: "John Roth" <jroth@xxxxxxxxxxxxx> Date: Thu, 17 Dec 1998 16:52:11 -0600 |
-----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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Newbie Needs Help, Guy_Murphy | Thread | Re: Newbie Needs Help, Chris Maden |
RE: alternating tags in a list?, Didier PH Martin | Date | Re: Newbie Needs Help, Chris Maden |
Month |