# File test/contrib_test.rb, line 198
  def test_xpath_02_TobiasReif
    doc = Document.new XML_STRING_01.dup
    desired_result = Document.new '<author>Thomas, David; Hunt, Andrew</author>'
    # Could that quirky
    #  Programmer',&quot;'&quot;,'s
    # be handled automatically, somehow?
    # Or is there a simpler way? (the below XPath should match the author element above,
    # AFAIK; I tested it inside an XSLT)
    xpath = "/biblio/entry[
    title=concat('Programming Ruby. The Pragmatic Programmer',&quot;'&quot;,'s Guide')
    and
    year='2000'
    ]/author"
    result = XPath.first(doc, xpath)
    failure_message = "\nHow to handle the apos inside the string inside the XPath?\n"
    assert_equal desired_result.to_s, result.to_s, failure_message
  end