Bonjour, je me demandais comment il etait possible de definir une ancre dans un XSL. En fait dans mon XML, j'ai differents noeuds :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
<Function name="Nom1">
...
</Function>
<Function name="Nom2">
...
</Function>
<Function name="Nom3">
...
</Function>
...
Et pour chacun, je souhaiterai creer une ancre

Voici le XSL que j'utilise :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html"/>
	<xsl:template match="/">
		<xsl:apply-templates select="Profiling_Results"/>
	</xsl:template>
	<xsl:template match="Profiling_Results">
		<html>
			<head>
				<link rel="stylesheet" type="text/css" href="profiling.css"/>
			</head>
			<body>
				<xsl:apply-templates select="General_Informations"/>
				<xsl:apply-templates select="Function"/>
			</body>
		</html>
	</xsl:template>
 
	<xsl:template match="General_Informations">
		<div class="block_main_name">
			<xsl:value-of select="Program_Name"/>
			<div class="sous-titre">
				Profiling results
			</div>
		</div>
	</xsl:template>
 
	<xsl:template match="Profiling_Results/Function">
		<div class="block_fonction">
			<div class="block_titre_fonction">
				<xsl:value-of  select="@name"/>
			</div>
			<div class="titre_temps">
      			Total time:
			</div>
				<xsl:value-of select="Total_time"/>
			<br/> 
			<div class="titre_temps">
	      		Minimum time:
			</div>
				<xsl:value-of select="Minimum_time"/>
			<br/> 
			<div class="titre_temps">
	      		Maximum time:
			</div>
				<xsl:value-of select="Maximum_time"/>
			<br/>
			<div class="titre_temps">
	      		Mean time:
			</div>
				<xsl:value-of select="Mean_time"/><br/>
		</div>
	</xsl:template>
 
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->

Sauriez vous comment faire ?

D'avance merci.