This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] xsl
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 19 Mar 2001 17:16:59 GMT
- References: <200103191752570672.002DDFA4@mailhost.rz.uni-karlsruhe.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<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