Hello, <rentalProperties> <property available="yes" contact="0455 455 014"> <type>apartment</type> <price>500</price> <address> <streetNo>15</streetNo> <street>Armadale Street</street> <suburb>Armadale</suburb> <state>VIC</state> <ZipCode>3143</ZipCode> </address> <numberofBedrooms>2</numberofBedrooms> <numberofBathrooms>1</numberofBathrooms> <garage>1</garage> <description>Top floor 2 bed Apartment in a Leafy Street with 2 carspaces</description> </property> </rentalProperty> I have to transform this into xml format using xslt. The address should be separated by comma, and zipcode shouldnt be included. Can you help me out?

Member Avatar
Member Avatar
+0 forum 3

Hello to all, HAving a hash where its keys are associated with arrays like below: myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]} Each key represent one header and the arrays elements represent the values for each header. How to print each key in different column separated by comma "," and below each header print all the values of corresponding array. Since some arrays have more elements, for the arrays that have less elements print blank like below. A,B,C,D HYU,TU6,11,1 ,,9,11 ,,8, ,,2, Thanks in advance for any help.

Member Avatar
Member Avatar
+0 forum 4

We store a list of keywords in the database as a comma-delimited string. I want to use Sphinx to query against the field, but I'm worried that the keywords would all be treated as a single word since there are no spaces. I went ahead and edited the MySQL query in the sphinx.conf file to `SELECT REPLACE(keywords, ',', ' ')` so that they would each be recognized as individual words, but is this necessary? How does Sphinx treat commas (and other punctuation, for that matter) and are they treated differently than spaces?

Member Avatar
Member Avatar
+0 forum 2

The End.