I'm working on a simple XML/XSLT file that is just meant to display a list of books on a very simple html layout. The files were created to learn XML and XSLT. I have since created two XSLT files that use the same XML. One displays the information in a single column within in the <div id="content"></div> tags. This one works perfectly. The other displays the list in three columns. The problem I am having is that while the <xslt:apply-templates /> tag is withing the <div id="col"></div> tags, it is ignoring the content and wrapper divisions above it. [B]The XML:[/B] …

Member Avatar
Member Avatar
+0 forum 5

Hi I have an event listener attached to something which will fire a lot based on some user action that has occured on the page or some javscript change. Unfortunately it will be something like 5 or 6 fires in the space of 250ms and I am only interested in the last fire so I can carry out the resource intensive processing. I'd like to ignore all of the fires before that. Any way this can be achieved keeping in mind we don't know how many times it will fire.

Member Avatar
Member Avatar
+0 forum 3

Hi All, I am uisng Mysql DB and i have a task for suggesting Categories based on User keyword input. I have written the query as below but i need to ignore white spaces while matching, how can we achieve it SELECT search.*, MATCH (name) AGAINST ('black' IN BOOLEAN MODE) AS name_match, MATCH (keywords) AGAINST ('black' IN BOOLEAN MODE) AS keyword_match, MATCH (description) AGAINST ('black' IN BOOLEAN MODE) AS description_match FROM search WHERE MATCH (name, keywords, description) AGAINST ('black' IN BOOLEAN MODE) ORDER BY (name_match * 3 + keyword_match * 2 + description_match) DESC LIMIT 0,100; I tried using replace() …

Member Avatar
Member Avatar
+0 forum 3

Hi, i'm using the following cmd to remove all lib files ending with .a find . -name "*.a" -exec rm -rf {} \; I have a file which i dont want to delete , say test.a, I just want to know how to make rm not delete test.a, but delete rest all files ending with .a

Member Avatar
Member Avatar
+0 forum 4

List the customer number and name for all customers located in the city of Grove. Your query should ignore case. For example, a customer with the city Grove should be included as should customers whose city is GROVE, grove, GrOvE, and so on. Can someone explain if I am doing this correctly. Thanks My Answer: SELECT CUST_NUM, CUST_NAME FROM CUSTOMER WHERE UPPER (CITY) = UPPER(GROVE);

Member Avatar
Member Avatar
+0 forum 2

Hi all! I m trying to filter a datagridview (connected to sql server). I have used if statements in order to take all the possible combination but now I have 8 textboxes into which the user should insert values and filter the datagridview.. it is too complex.. I have asked in the past but I didn t acheived to find a solution.. So HELP me plz!! the problem i would like to write a sql query in order to filter a datagridview. The user insert in 8 text boxes the filter criteria but what if he want to insert only …

Member Avatar
Member Avatar
+0 forum 6

Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" & txtDMA.Text & "') " [/CODE] but there is error near 'is' can i use a query like this one? it would help me?

Member Avatar
Member Avatar
+0 forum 5

Hi all! I try to filter a datagridview and I wrote an sql statement for that reason. The problem is that although I achieved to have multifilter I can find how to make my cod ignore the criteria which are null (empty criteria, when the user doesn t give any values). I tried the code below but I know that it isn t correct. [ICODE] "Select * from INCIDENTS where (DMA =Is NULL OR DMA='" & txtDMA.Text &'") AND (StreetName IS NULL or StreetName LIKE '" & txt.text & "%' )"[/ICODE] Plz help!

Member Avatar
Member Avatar
+0 forum 2

When I run my program it ignores the cin and goes into an infinite loop. It acts as though the cin.ignore() isn't working. [CODE] int getInput(int tries){ int numGuess = 0; cin >> numGuess; cin.ignore(); validate(numGuess, tries); return 0; } int validate (int input, int tries){ if (input <1 || input >100){ cout << "Please enter a decimal integer between 1 and 100: "; getInput(tries); } return NULL; }[/CODE]

Member Avatar
Member Avatar
+0 forum 14

Learned about hook functions [URL="http://www.daniweb.com/software-development/python/threads/383164/1650339#post1650339"]for a thread[/URL] having problem with bad user input from the documentation. This is result which skips bad inputs.

Member Avatar
Member Avatar
+0 forum 5

Wasn't sure whether to put this with PHP or Mysql I'm having trouble with the below code, it only does the inner while loop once, while still cycling past it every time. It should update the "favourite" integer column in each "link" by checking if it's in the favourites of each "user". Favourites in users database entries look like .1.4.8. - hence the ".".___."." [CODE]$links=mysql_query("SELECT * FROM links WHERE id>0"); $users=mysql_query("SELECT * FROM users WHERE userid>0"); while($link=mysql_fetch_array($links)){ $working=0; while ($user=mysql_fetch_array($users)){ echo "checking ",$user[6]," for .",$link[0],".<br />"; if (substr_count($user[6],".".$link[0].".")>0){ echo "found .",$link[0],". in ",$user[6],"<br />"; $working+=1; } } echo "setting ",$link[0]," …

Member Avatar
Member Avatar
+0 forum 2

The End.