Subject: Re: [xsl] Hello and quick question From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 07 Jan 2003 14:01:05 -0500 |
Cheers, Wendell
Maybe you can better use some possible optimizations of the proceesor by adding [1] into the expression:
/ROOT/Client/Contacts/Contact[isReferrer='0'][1]/ContactFirstName
Furthermore you sometimes need a node set (even it's a single node) and not a string, e.g. <xsl:apply-templates select="/ROOT/Client/Contacts/Contact[isReferrer='0'][1]/ContactFirstName"/>, that won't work with string().
Simon has a little error in his expression. He selects the first Contact element, independent of [isReferrer='0'] or not. If this first Contact element does not have a child 'isReferrer' with text value '0', his node set would be empty.
====================================================================== 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Hello and quick question, Joerg Heinicke | Thread | [xsl] XML transformations using XSL, Chitra Lalita Madhwa |
RE: [xsl] generating xml with a run, Michael Kay | Date | [xsl] Approach for wrapping element, Dave Pratt |
Month |