[XSL-LIST Mailing List Archive Home]
Re: [xsl] Could not select the text() of both parent & child nodes simultaneously
Subject: Re: [xsl] Could not select the text() of both parent & child nodes simultaneously|
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 17 Jun 2010 16:02:55 +0100
On 17/06/2010 15:23, Jack Bush wrote:
Example ( A ) found the data but they need to be at the same time.
sorry I have no idea what you mean by that, can you post your desired
output for the sample input you posted. In that input all the teams were
in a elements which you can select by ns:a and all the goals are in text
nodes that you can select by text(). so the code in (A)
text()|ns:a selects both teams and goals and wraps each in a <team>.
If that isn't what you want, you;ll need to say what you want.