xsl-list
[Top] [All Lists]

Ignoring data before first match element

2005-04-11 04:16:23
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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