[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] how to select elements based on optional container ar
XSLT 1.0 is a constraint. I'm having trouble with a select expression to select the marked elements (<!--X-->) in the following XML: <container select="2"> <item>...</item><!--X--> <item>...</item><!--X--> <item>...</item> </container> <container> <item>...</item><!--X--> <item>...</item><!--X--> <item>...</item><!--X--> </container> <container select="1"> <item>...</item><!--X--> <item>...</item> <item>...</item> <item>...</item> </container> In the case of a no select attribute all items in the container should be in the node set. If there is a attribute select="n", only the first "n" items should be in the node set. The expression needs to work across all containers. There is the additional constraint that only items with parent container are to be selected. Where could I start to look for code examples that solves a similar problem? Thanks in advance for your help. _____________________________________________________________________________ _______ Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|