<html>
<head>


<title>Fonction unparsed-entity-uri()</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div id="Description">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
<tr>
<td valign="top" class="NAME">Fonction unparsed-entity-uri()</td>
<td valign="top" class="COMPATIBILITY">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
</tr>
<tr>
<td valign="top" colspan="2" class="description">
Renvoie l'URI de l'entit&eacute; non analys&eacute;e avec le nom sp&eacute;cifi&eacute;. Si cette entit&eacute; est introuvable, la fonction <span class="LITERAL">unparsed-entity-uri</span> renvoie une cha&icirc;ne vide.</td></tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Entr&eacute;es</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>Le nom de l'entit&eacute; non analys&eacute;e.</p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Sortie</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>L'URI de l'entit&eacute; non analys&eacute;e avec le nom sp&eacute;cifi&eacute;. </p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">D&eacute;fini dans</td>
</tr>
<tr>
<td colspan="2" class="description">
<p>XSLT section 12.4, Fonctions suppl&eacute;mentaires diverses. </p>
</td>
</tr>
<tr>
<td colspan="2" class="CLEARSEPARATION">&nbsp;</td>
</tr>
<tr>
<td colspan="2" class="TITLE">Exemple</td>
</tr>
<tr>
<td colspan="2" class="description">
<!--<?troff .hw picture?>-->
<p>Il est rare d'utiliser des entit&eacute;s non analys&eacute;es&nbsp;; elles font r&eacute;f&eacute;rence &agrave; des donn&eacute;es non XML, comme l'entit&eacute; <span class="LITERAL">author-picture</span> du document XML suivant&nbsp;:</p>
<span class="PROGRAMLISTING"><pre>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!DOCTYPE book [
  &lt;!ENTITY author-picture SYSTEM &quot;dougtidwell.jpg&quot; NDATA JPEG&gt;
]&gt;
&lt;book&gt;
  &lt;prolog cover-image=&quot;author-picture&quot;/&gt;
  &lt;body&gt;
    &lt;p&gt;Pretend that lots of useful content appears here.&lt;/p&gt;
  &lt;/body&gt;
&lt;/book&gt;</pre></span>
<p>La feuille de style suivante a permis de traiter l'entit&eacute; non analys&eacute;e&nbsp;:</p>
<span class="PROGRAMLISTING"><pre>
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;xsl:stylesheet version=&quot;1.0&quot;
  xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&gt;

  &lt;xsl:output method=&quot;text&quot;/&gt;
<!--<?troff .Nd 10?>-->
  &lt;xsl:variable name=&quot;newline&quot;&gt;
&lt;xsl:text&gt;
&lt;/xsl:text&gt;
  &lt;/xsl:variable&gt;

  &lt;xsl:template match=&quot;/&quot;&gt;
    &lt;xsl:value-of select=&quot;$newline&quot;/&gt;
    &lt;xsl:text&gt;A test of the unparsed-entity-uri() function:&lt;/xsl:text&gt;

    &lt;xsl:value-of select=&quot;$newline&quot;/&gt;
    &lt;xsl:value-of select=&quot;$newline&quot;/&gt;
    &lt;xsl:text&gt;   The cover image is located at &lt;/xsl:text&gt;
    &lt;xsl:value-of select=&quot;unparsed-entity-uri(/book/prolog/@cover-image)&quot;/&gt;
    &lt;xsl:text&gt;.&lt;/xsl:text&gt;
    &lt;xsl:value-of select=&quot;$newline&quot;/&gt;
  &lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;</pre></span>
<p>Une fois le document XML transform&eacute; &agrave; l'aide de cette feuille de style, les r&eacute;sultats sont les suivants&nbsp;:</p>
<span class="PROGRAMLISTING"><pre>

A test of the unparsed-entity-uri() function:

   The cover image is located at file:///D:/O'Reilly/dougtidwell.jpg.

</pre></span>
<p>L'URI de l'entit&eacute; non analys&eacute;e d&eacute;pend de l'URI de base du document XML lui-m&ecirc;me.






</p>
</td>
</tr>
</table>
</div>
</body>
</html>
