Re: [xsl] Parent of context node

Subject: Re: [xsl] Parent of context node
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 22 May 2003 17:07:10 -0400
Chris,

At 04:30 PM 5/22/2003, you wrote:
Am I wrong that "../sg" should be true if the immediate parent of the context node is <sg>?

Yup.


"../sg" is short for "parent::node()/child::sg". Does that explain it?

What you want is test="parent::sg".

I haven't examined the rest of your template, so I can't say what else might be off, but your suspicion is correct so I'll leave it at that.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread