[xsl] Ignoring data before first match element

Subject: [xsl] Ignoring data before first match element
From: mylistaddress@xxxxxxxxxx
Date: Mon, 11 Apr 2005 04:16:23 -0700 (PDT)
Hi,
I have a basic XML template something like this clip:

<data>
 <searchTerm>ID=12345</searchterm>
 <response>
  <record id="1">
  ...lots more here

My XSL is as follows (declaration and other omitted):
...
<xsl:template match="record">
 <xsl:apply-templates select="Field" />
</xsl:template>
...

The match works as expected, but the contents of the
<searchTerm> element (ID=12345) is output at the
begining of the transform result (without the element
tags around them).

Why is this happening? Should the content before my
first "match" not be ignored?

Any help appreciated.

JW

Current Thread