Mike F.:
At 04:00 PM 2/27/2002, you wrote:
I would like to exclude some elements from my copy-of output. I am
trying to use a template with xsl:copy but I am still not finding the
correct syntax for not().
<xsl:copy-of select="C1001/node()[not(child::C1007) and
not(child::C1010)]"/>
This translates into English as "copy all nodes that are children of my
C1001 children but that do not have C1007 children and do not have C1010
children of their own".
To be more explicit, I'm afraid we need to see a snippet of your source XML
again, with a specification of which nodes you want to copy and which ones
you don't. (Tell us in the natural language of your choice, and there's
probably someone around who can translate it back into XPath.)
But the ultimate solution to your problem is to master XPath. 'and' and
'or' operators, the not() function, etc., are all part of XPath.
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 |
- Re: Value-of, copy-of, (continued)
- cutlass - Wed, 27 Feb 2002 09:49:36 -0500 (EST)
- Mike Ferrando - Wed, 27 Feb 2002 11:44:04 -0500 (EST)
- Mike Brown - Wed, 27 Feb 2002 12:21:24 -0500 (EST)
- Mike Ferrando - Wed, 27 Feb 2002 15:56:49 -0500 (EST)
- Wendell Piez - Wed, 27 Feb 2002 16:40:57 -0500 (EST) <=
- Mike Ferrando - Wed, 27 Feb 2002 17:17:46 -0500 (EST)
- Wendell Piez - Wed, 27 Feb 2002 17:37:06 -0500 (EST)
- Mike Ferrando - Wed, 27 Feb 2002 18:14:23 -0500 (EST)
- Wendell Piez - Wed, 27 Feb 2002 18:36:38 -0500 (EST)
|
|