Who Is A XSLT "select" Hot Shot!!!

wxdqz

New Member
*** Employee Lookup Scenario ***Consider the XML file:<?xml version="1.0" encoding="ISO-8859-1"?><?xml:stylesheet type="text/xsl" href=http://forums.devx.com/archive/index.php/"./lookup.xsl" ?><x_employees><x_employee><x_empl_id>351533117</x_empl_id><x_comp_id>ACT</x_comp_id><x_first_name>GERARD </x_first_name><x_mid_name>L </x_mid_name><x_last_name>CARLIN </x_last_name></x_employee><x_employee><x_empl_id>379337311</x_empl_id><x_comp_id>ACT</x_comp_id><x_first_name>ALLEN </x_first_name><x_mid_name>J </x_mid_name><x_last_name>FOGOROS </x_last_name></x_employee>etc. etc.Where "./lookup.xsl" includes:<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"><xsl:for-each select="x_employees/x_employee[(x_first_name $ige$'Ro') andnot (x_first_name $ige$ 'Rp')]">This working example enables a user to enter two letters (in this case "Ro")andthe result set is all Employees whose first name begins with "RO".However, after using the MS XSLT conversion routine and the following namespace:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:local="#local-functions"xmlns:xql="#xql-functions">I am unable to produce a functioning "select" statement yielding the desiredresult set.Several ways this does not work could be listed ... however, I'd hate toconstrain creativity with my blind alley approaches!Thanks for whatever help you can provide,Marvin Toll
 
Back
Top