This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xsl
Are you stuck with this XML structure? It is not good.
If you can change the XML structure to something like (you will make your
life much easier):
<container>
<para>jfdhgkjfdgjkadfg</para>
<customers>
<customer attr="word1" sex="her">
<customerdata>jkkjjkg</customerdata>
</customer>
<customer attr="word1" sex="her">
<customerdata>jkkjjkg</customerdata>
</customer>
</customers>
</container>
----- Original Message -----
From: "Partho Paul" <uk4u@rz.uni-karlsruhe.de>
To: "xsl" <xsl-list@lists.mulberrytech.com>
Sent: Monday, March 19, 2001 8:52 AM
Subject: [xsl] xsl
> Hello,
> have the following problem with xml and xsl:
> I have this xml Structure:
>
> <para>
> <text> Some text
>
> <customer attr="word1" sex="her|his"/>
> <customerdata attr="word1">customerword1</customerdata>
>
> again some text
>
> <customer attr="word2" sex="her|his"/>
> <customerdata attr="word2">customerword2</customerdata>
> further text
> .... ....
> </text>
>
> </para>
> --------------------------------------------------------------------------
---------------------
> Now my xsl structure:
>
> .....
> <xsl:apply-template select="para"/>
> <xsl:template match="para">
> <xsl:apply-template select="text"/>
> </xsl:template>
>
> <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>
>
> Thanx
>
> Partho
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list