Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2012, 11:01 PM
Registered User
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Newbie: XSLT transformation question

I'm a newbie to XSLT.

I'm trying to comeup with xsl that will validate number of children in the element based on the value of the attribute.

Sample XML:

...
<Manager mincount="4" grade="10"...>
<Employee id="1" grade="9" .... />
<Employee id="2" grade="8" .... />
.....
</Manager>


1. The number of children under Manager (Employee in this case) must be equal to or greater than the value of mincount attribute.
2. All the employee's grade must be less than the Manager grade.

Appreciate your help!
TIA!
foobar.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie (very newbie!) question about com.paad.* jkcashin BOOK: Professional Android 2 Application Development 3 June 5th, 2013 06:52 AM
Newbie XSLT question fedehf XSLT 4 January 29th, 2008 03:09 PM
help with xslt transformation li72 XSLT 6 November 19th, 2007 01:51 PM
Newbie XSLT question wasabi XSLT 2 March 8th, 2007 01:06 PM
Newbie: ASP.NET/XML Transformation Problem kwilliams ASP.NET 2.0 Basics 1 August 28th, 2006 02:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.