|
Subject: comparing node types From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 24 Jul 2000 16:33:59 +0200 (MET DST) |
Hi,
does anyone know a short expression that returns true if two nodes
($first1 and $first2) are of the same type?
What I currently have is
(($first1[self::text()] and $first2[self::text()]) or
($first1[self::comment()] and $first2[self::comment()]) or
($first1[self::processing-instruction()] and
$first2[self::processing-instruction()] and
name($first1)=name($first2)))
(element and attribute nodes omitted in this example ...)
Regards,
Oliver
/-------------------------------------------------------------------\
| ob|do Dipl.Inf. Oliver Becker |
| --+-- E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Merging two XML Documents, Oliver Becker | Thread | RE: comparing node types, Kay Michael |
| Re: Testing for an element NOT pres, David Carlisle | Date | RE: [Announce] XSLTC 0.3 (C++ style, ogerardin . cs |
| Month |