[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Reading recursive from a list

Subject: Reading recursive from a list
From: "Houman Khorasani" <Houman.Khorasani@xxxxxxxxxxx>
Date: Mon, 1 Oct 2007 13:07:17 +0100
 Reading recursive from a list
Hello,

I am wondering how I would be able to do this in XSLT 1.0 or 2.0, if
possible at all:

I have a list of animals as a separate XML file:

<UnitInfos>
	<Type>UNIT_LION</Type>
	<Type>UNIT_BENGALTIGER</Type>
	<Type>UNIT_SIBERIANTIGER</Type>
</UnitInfos>


In my XSLt I would like it to grab the first animal from the list and
check a bigger list for this three type of animals and copy the unit
that is equal to that Type in the list to the output file.

I would be making an XSLT like this:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:f="ANIMALS"
exclude-result-prefixes="f">

	<xsl:template match="f:???????">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()"/>
		</xsl:copy>
	</xsl:template>

</xsl:stylesheet>


How would I tell, go and check in that XMl file in that list and grab
the values for the match case ?
I could also put the list inside the same XSLT if its possible and makes
things easier? I have no idea how to do that recursively so that all
List would be checked through.

Any Idea?
Many Thanks
Houman

Tribold News Alert!   Tribold Accelerates Growth With New CEO Appointment.

Tribold Limited.  Registered Office: Carmelite, 50 Victoria Embankment,
Blackfriars, London EC4Y 0DX, United Kingdom.    Registered in England and
Wales No: 4942611

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.