>select="//identificationInfo//title[@locale="#xpointer(//*[@id='hu'])"]"
XML doesn't allow quotes within an attribute value (when the attribute value is delimited by quotes) unless escaped as "
>
@locale='#xpointer(//*[@id='hu'])']
XPath does not allow ' within a string literal (when the string literal is delimited by ')
The best way to do this is
<xsl:variable name="s">#xpointer(//*[@id='hu'])</xsl:variable>
<xsl:variable name="lang_hu" select="//identificationInfo//title[@locale=$s]"/>
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference