Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XSL variable conundrum >Thread Next - Re: XSL variable conundrum Re: XSL variable conundrumTo: NULL Date: 11/6/2008 7:25:00 AM Use: /*/*/hotel[not(valores/disponibilidad/estado != 'OK')] Cheers, Dimitre novatchev "Buzby" <gb@p...> wrote in message news:6ngep8Flbaf9U1@m...... > Dimitre Novatchev wibbled: > >> So, where is the XML document in question? > > > Good point! > > I've cut the file down as it was big - basically it loops through the > <hotels> with an innner loop on <disponibilidad> where daily price etc > etc is shown for each day. I only want to show the hotel if all the > <estados> equal to ok - so for example over a booking period there may > only be three days available out of four days required so moveonto the > next hotel. > > I'm complete and utterly stuck! > > Many thanks and best regards > > Grant > > > > <respuesta> > > <hoteles> > <hotel> > <codigo><![CDATA[600481]]></codigo> > <afiliacion><![CDATA[HA]]></afiliacion> > <nombre_h><![CDATA[THE BRUNEL]]></nombre_h> > <direccion><![CDATA[79-81 GLOUCESTER TERRACE]]></direccion> > <provincia><![CDATA[INLON]]></provincia> > <provincia_nombre><![CDATA[LONDON]]></provincia_nombre> > <poblacion><![CDATA[LONDON]]></poblacion> > <descripcion><![CDATA[This is located near Hyde Park and just a short > distance from Queensway and offers 42 fully-fitted > rooms..]]></descripcion> > <como_llegar><![CDATA[From Heathrow airport: take the metro to > Lancaster Gate..]]></como_llegar> > <categoria><![CDATA[3]]></categoria> > > <foto><![CDATA[http://www.hotelresb2b.com/images/hoteles/11662_fotpe1_HA > BITACION1OKOK111.JPG]]></foto> > > <plano><![CDATA[http://www.hotelresb2b.com/planos/11662_plano_PLHAHC0116 > 62.GIF]]></plano> > <pago_directo><![CDATA[S]]></pago_directo> > <calidad><![CDATA[1]]></calidad> > <marca><![CDATA[HA#]]></marca> > <telefono><![CDATA[44 207 2624481]]></telefono> > <valores><disponibilidad> > <fecha><![CDATA[02-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TP]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PW]]></tarifa> > <precio>108.8</precio> > <comision>13</comision> > <neto>96.76</neto> > <servicio><![CDATA[BB]]></servicio> > <estado><![CDATA[OK]]></estado> > <fecha_entrada><![CDATA[20090102]]></fecha_entrada> > <fecha_salida><![CDATA[20090103]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad><disponibilidad> > <fecha><![CDATA[03-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TP]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PW]]></tarifa> > <precio>108.8</precio> > <comision>13</comision> > <neto>96.76</neto> > <servicio><![CDATA[BB]]></servicio> > <estado><![CDATA[OK]]></estado> > <fecha_entrada><![CDATA[20090103]]></fecha_entrada> > <fecha_salida><![CDATA[20090104]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad><disponibilidad> > <fecha><![CDATA[04-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TW]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PW]]></tarifa> > <precio>70.4</precio> > <comision>13</comision> > <neto>62.61</neto> > <servicio><![CDATA[BB]]></servicio> > > <estado><![CDATA[OK]]></estado> > > > <fecha_entrada><![CDATA[20090104]]></fecha_entrada> > <fecha_salida><![CDATA[20090105]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad></valores> > <pob_serviprove><![CDATA[0]]></pob_serviprove> > <puntos><![CDATA[S]]></puntos> > <edadnindes><![CDATA[0]]></edadnindes> > <edadninhas><![CDATA[12]]></edadninhas> > <longitud><![CDATA[-0.179]]></longitud> > <latitud><![CDATA[51.514]]></latitud> > > <sp>N</sp> > <paqfs_cod>0</paqfs_cod> > <paqfs_nom></paqfs_nom> > <categoria2><![CDATA[CO]]></categoria2> > <tarifa_negociada><![CDATA[]]></tarifa_negociada> > </hotel> > <hotel> > <codigo><![CDATA[450286]]></codigo> > <afiliacion><![CDATA[HA]]></afiliacion> > <nombre_h><![CDATA[KENSINGTON COURT ]]></nombre_h> > <direccion><![CDATA[33, NEVERN PLACE EAR]]></direccion> > <provincia><![CDATA[INLON]]></provincia> > <provincia_nombre><![CDATA[LONDON]]></provincia_nombre> > <poblacion><![CDATA[LONDON]]></poblacion> > <descripcion><![CDATA[Hotel located in the hip area in London. Located > in the hip area of Kensington and Earl?s Court. At just two minutes > walking from Earl?s Court Convention and Exhibition Center, at just 200 > metres, and at 4 kilometres from downtown London. Heathrow > International Airport is at 20 kilometres. The train station is at 3 > kilometres, the bus stop at 200 metres and the tube station at 300 > metres. This location make the hotel a versatile establishment, > suitable for business people and tourists alike. The hotel?s 35 rooms > have all the necessary facilities to guarantee guests all the comforts > of an excellent location and a kind staff.]]></descripcion> > <como_llegar><![CDATA[From Heathrow airport: take the metro to Earls > Court. > Closest station is Earl?s Court on the Piccadilly (District > Lines).]]></como_llegar> > <categoria><![CDATA[3]]></categoria> > > <foto><![CDATA[http://www.hotelresb2b.com/images/hoteles/3795_fotpe1_HAB > ITACION1OKOK111.JPG]]></foto> > > <plano><![CDATA[http://www.hotelresb2b.com/planos/3795_plano_PLHA3795.GI > F]]></plano> > <pago_directo><![CDATA[S]]></pago_directo> > <calidad><![CDATA[1]]></calidad> > <marca><![CDATA[HA#]]></marca> > <telefono><![CDATA[44 207 3705151]]></telefono> > <valores><disponibilidad> > <fecha><![CDATA[02-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TW]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PR]]></tarifa> > <precio>97.28</precio> > <comision>13</comision> > <neto>86.52</neto> > <servicio><![CDATA[BB]]></servicio> > <estado><![CDATA[OK]]></estado> > <fecha_entrada><![CDATA[20090102]]></fecha_entrada> > <fecha_salida><![CDATA[20090103]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad><disponibilidad> > <fecha><![CDATA[03-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TW]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PR]]></tarifa> > <precio>97.28</precio> > <comision>13</comision> > <neto>86.52</neto> > <servicio><![CDATA[BB]]></servicio> > <estado><![CDATA[OK]]></estado> > <fecha_entrada><![CDATA[20090103]]></fecha_entrada> > <fecha_salida><![CDATA[20090104]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad><disponibilidad> > <fecha><![CDATA[04-JAN-09]]></fecha> > <tipo_habitaciones><![CDATA[TW]]></tipo_habitaciones> > <n_habitaciones>1</n_habitaciones> > <tarifa><![CDATA[PR]]></tarifa> > <precio>97.28</precio> > <comision>13</comision> > <neto>86.52</neto> > <servicio><![CDATA[BB]]></servicio> > <estado><![CDATA[OK]]></estado> > <fecha_entrada><![CDATA[20090104]]></fecha_entrada> > <fecha_salida><![CDATA[20090105]]></fecha_salida> > <divisa><![CDATA[EU]]></divisa> > <adultosnin><![CDATA[2]]></adultosnin> > <paxes1><![CDATA[2]]></paxes1> > </disponibilidad></valores> > <pob_serviprove><![CDATA[0]]></pob_serviprove> > <puntos><![CDATA[S]]></puntos> > <edadnindes><![CDATA[0]]></edadnindes> > <edadninhas><![CDATA[12]]></edadninhas> > <longitud><![CDATA[-0.196]]></longitud> > <latitud><![CDATA[51.492]]></latitud> > > <sp>N</sp> > <paqfs_cod>0</paqfs_cod> > <paqfs_nom></paqfs_nom> > <categoria2><![CDATA[CO]]></categoria2> > <tarifa_negociada><![CDATA[]]></tarifa_negociada> > </hotel> > </hoteles> > </parametros> > </respuesta> > -- > Buzby > There's nothing more dangerous than a resourceful idiot | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
