[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: xsl
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 19 Mar 2001 17:16:59 GMT
  <xsl:template match="text">
  HERE THE PROBLEM starts, because the 'customer' tags can
  occur everywhere within the 'text'-tag in xml.
  AND how can I get the text on the one hand and on the other hand
  the customer stuff in sequence order as they occur in the xml file?????
  </xsl:template>

That is the default behaviour for XSL, so you just want

<xsl:template match="text">
 <xsl;apply-templates/>
</xsl:template>

(or no template for text at all, as that is the default)

The character data in text will be copied to the output, and each 
customer element will be transformed by whatever you specify in

<xsl:template match="customer">...</xsl:template>
<xsl:template match="customerdata">...</xsl:template>

David


and 

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XSL
    • Jim Nelson - Thu, 8 Mar 2001 16:58:42 -0500 (EST)
      • <Possible follow-ups>
      • Partho Paul - Mon, 19 Mar 2001 11:53:16 -0500 (EST)
        • Robert Koberg - Mon, 19 Mar 2001 12:11:44 -0500 (EST)
        • David Carlisle - Mon, 19 Mar 2001 12:17:54 -0500 (EST) <=
      • Tom Melkonian - Tue, 27 Mar 2001 20:45:32 -0500 (EST)
      • Peter . FLYNN - Wed, 28 Mar 2001 10:07:58 -0500 (EST)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member