Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/05/2011, 07:25
Avatar de Patriarka
Patriarka
 
Fecha de Ingreso: enero-2011
Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 13 años, 10 meses
Puntos: 288
Respuesta: Parse error: syntax error, unexpected '"', expecting ')'

y anda separando el codigo ordenadamente hasta encontrar el error de sintaxis
Código PHP:
Ver original
  1. protected static $xpath = array(
  2. 'id' => "@id = '%s'",
  3. 'class' => "contains(concat(' ', normalize-space(@class), ' '), ' %s ')",
  4. 'attr' => "@%s", 'contains' => "contains(string(.), '%s')",
  5. 'not' => 'not(%s)',
  6. 'operators' => array("=" => "@%1 = '%3'",
  7. "!=" => "not(@%1) or @%1 != '%3'",
  8. "^=" => "starts-with(@%1, '%3')",
  9. "$=" => "substring(@%1, (string-length(@%1) - string-length('%3') + 1)) = '%3'",
  10. "*=" => "contains(@%1, '%3')",
  11. "~=" => "contains(concat(' ', normalize-space(@%1), ' '), ' %3 ')",
  12. "|=" => "@%1 = '%3' or starts-with(@%1, '%3-')"),
  13. 'pseudos' => array('first-child' => 'not(preceding-sibling::*)', 'last-child' => 'not(following-sibling::*)', 'only-child' => 'not(preceding-sibling::* or following-sibling::*)', 'enabled' => "not(@disabled) and (@type!='hidden')", 'disabled' => "(@disabled) and (@type!='hidden')", 'first' => 'position() = 1', 'last' => 'last()', 'empty' => 'count(*) = 0 and (count(text()) = 0)', 'checked' => '@checked'), 'combinators' => array('>' => 'child', '~' => 'general-sibling', '+' => 'adjacent-sibling'));

algo asi