xsl-list
[Top] [All Lists]

Re: Parent of context node

2003-05-22 14:07:10
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(_at_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>