query = "escape-html-uri('$')"; result = service.query(query); r 	= (String) result.getResource(0).getContent(); assertEquals("$", r);
	public void testEscapeHTMLURI() {		ResourceSet result 		= null;		String		r			= "";		String string;		String expected;		String query;			try {			string = "http://www.example.com/00/Weather/CA/Los Angeles#ocean";			expected = "http://www.example.com/00/Weather/CA/Los Angeles#ocean";			query = "escape-html-uri(\"" + string + "\")";			result = service.query(query);			r 	= (String) result.getResource(0).getContent();			assertEquals(expected, r);						string = "javascript:if (navigator.browserLanguage == 'fr') window.open('http://www.example.com/~b\u00e9b\u00e9');";			expected = "javascript:if (navigator.browserLanguage == 'fr') window.open('http://www.example.com/~b%C3%A9b%C3%A9');";			query = "escape-html-uri(\"" + string + "\")";			result = service.query(query);			r 	= (String) result.getResource(0).getContent();			assertEquals(expected, r);								} catch (XMLDBException e) {			System.out.println("EscapeHTMLURI(): " + e);			fail(e.getMessage());		}			}		