Menu

saxon refuse the contains(., '&'). - &

saxon-help
phyllis
2017-06-23
2017-06-23
  • phyllis

    phyllis - 2017-06-23

    I have to find an element which contains "&" so I'm using contains(., '&') in my xsl 2.0. but I got the next error message from my oxygen:
    F [Saxon-B 9.0.0.6] The entity name must immediately follow the '&' in the entity reference.

    Really appricate any idea to solved this. Many thanks in advance!

     

    Last edit: phyllis 2017-06-23
  • Michael Kay

    Michael Kay - 2017-06-23

    This forum is no longer active. I recommend asking XSLT coding questions on StackOverflow. XSLT is XML so any ampersand must be escaped as & a m p ; (five characters, no spaces)

     
  • phyllis

    phyllis - 2017-06-23

    Thank you very much Michael. it works for me. I will post my questions on StackOverflow in the future.