Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Reading recursive from a list

From: "Houman Khorasani" <Houman.Khorasani@----------->
To:
Date: 10/1/2007 12:05:00 PM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent