--- a/examples/eg-43-xmlns-not-accessible/xml/get-prefix.xsl Fri Dec 14 10:12:44 2012 -0500
+++ b/examples/eg-43-xmlns-not-accessible/xml/get-prefix.xsl Fri Dec 14 10:24:52 2012 -0500
@@ -19,9 +19,10 @@
<!-- These two work, but require an addition of a <prov:prefix> element -->
<xsl:variable name="magic2" select="//prov:prefix[@prov:id=$prefix]"/>
<xsl:variable name="magic3" select="key('prefix',$prefix)"/>
+ <xsl:variable name="magic4" select="namespace-uri-for-prefix($prefix,//prov:entity)"/>
<xsl:value-of select="concat('The full URI of your painting is ',
- $magic3,
+ $magic4,
substring-after(//prov:entity/@prov:ref,':'))"/>
</xsl:template>