Bonjour, je voudrais savoir comment faire pr importer des données qui sont sur une feuille XML vers une feuille XSL qui affichera du SVG, svp?

voici un extrait de ce que j'ai pr le moment:

pour le fichier XML:
[/#indigo]

<?xml version = "1.0" encoding = "UTF-8" ?>

<uml version="3">

<pgml description="org.argouml.uml.diagram.use_case.ui.UMLUseCaseDiagram|127-0-0-1-3bc20e:105489ab50f:-8000"

name="Use Case Diagram 1"

>

<group name="Fig0"

description="org.argouml.uml.diagram.use_case.ui.FigActor[136, 128, 35, 65]"

href="127-0-0-1-3bc20e:105489ab50f:-7ffe"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<private>

</private>



<rectangle name="Fig0.0"

x="146"

y="128"

width="15"

height="60"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

/>

<text name="Fig0.1"

x="137"

y="177"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

font="Dialog"

textsize="10"

>Acteur</text>

<ellipse name="Fig0.2"

x="153"

y="135"

rx="7"

ry="7"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

/>

<path name="Fig0.3"

description="org.tigris.gef.presentation.FigLine"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="153"

y="143" />

<lineto x="153"

y="158" />

</path>

<path name="Fig0.4"

description="org.tigris.gef.presentation.FigLine"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="143"

y="148" />

<lineto x="163"

y="148" />

</path>

<path name="Fig0.5"

description="org.tigris.gef.presentation.FigLine"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="153"

y="158" />

<lineto x="148"

y="173" />

</path>

<path name="Fig0.6"

description="org.tigris.gef.presentation.FigLine"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="153"

y="158" />

<lineto x="158"

y="173" />

</path>

</group>

<group name="Fig1"

description="org.argouml.uml.diagram.use_case.ui.FigUseCase[352, 120, 102, 60]"

href="127-0-0-1-3bc20e:105489ab50f:-7ffd"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<private>

</private>



<ellipse name="Fig1.0"

x="403"

y="150"

rx="51"

ry="30"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

/>

<ellipse name="Fig1.1"

x="403"

y="150"

rx="51"

ry="30"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

/>

<text name="Fig1.2"

x="365"

y="142"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

font="Dialog"

textsize="10"

>Cas d&apos;utilisation</text>

<text name="Fig1.3"

x="16"

y="-8"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

font="Dialog"

textsize="10"

></text>

<path name="Fig1.4"

description="org.tigris.gef.presentation.FigLine"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="16"

y="22" />

<lineto x="116"

y="22" />

</path>

<group name="Fig1.5"

description="org.tigris.gef.presentation.FigGroup[]"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

>

<private>

</private>



<rectangle name="Fig1.5.0"

x="64"

y="25"

width="4"

height="4"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

/>

</group>

</group>

<group name="Fig3"

description="org.argouml.uml.diagram.static_structure.ui.FigComment[489, 32, 87, 68]"

href="127-0-0-1-3bc20e:105489ab50f:-7ff7"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<private>

</private>



<rectangle name="Fig3.0"

x="489"

y="32"

width="87"

height="68"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

/>

<path name="Fig3.1"

description="org.tigris.gef.presentation.FigPoly"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="489"

y="32" />

<lineto x="565"

y="32" />

<lineto x="575"

y="42" />

<lineto x="575"

y="99" />

<lineto x="489"

y="99" />

<lineto x="489"

y="32" />

</path>

<path name="Fig3.2"

description="org.tigris.gef.presentation.FigPoly"

fill="1"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="565"

y="32" />

<lineto x="575"

y="42" />

<lineto x="565"

y="42" />

<lineto x="565"

y="32" />

</path>

<text name="Fig3.3"

x="491"

y="34"

fill="0"

fillcolor="-1"

stroke="0"

strokecolor="-16777216"

font="Dialog"

textsize="10"

></text>

</group>

<group name="Fig2"

description="org.argouml.uml.diagram.ui.FigAssociation"

href="127-0-0-1-3bc20e:105489ab50f:-7ffc"

stroke="1"

strokecolor="-16777216"

>

<private>

sourcePortFig="Fig0"

destPortFig="Fig1"

sourceFigNode="Fig0"

destFigNode="Fig1"

</private>

<path name="Fig2.1"

description="org.tigris.gef.presentation.FigPoly"

fill="0"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="161"

y="135" />

<lineto x="351"

y="150" />

</path>

</group>

<group name="Fig4"

description="org.argouml.uml.diagram.static_structure.ui.FigEdgeNote"

href="127-0-0-1-3bc20e:105489ab50f:-7ff5"

stroke="1"

strokecolor="-16777216"

>

<private>

sourcePortFig="Fig3.0"

destPortFig="Fig1.0"

sourceFigNode="Fig3"

destFigNode="Fig1"

</private>

<path name="Fig4.1"

description="org.tigris.gef.presentation.FigPoly"

fill="0"

fillcolor="-1"

stroke="1"

strokecolor="-16777216"

>

<moveto x="489"

y="100" />

<lineto x="439"

y="128" />

</path>

</group>

</pgml>

<todo>

<todolist>

<todoitem>

<headline>commentaire</headline>

<priority>high</priority>

<moreinfourl></moreinfourl>

<description>%60;Enter%32;TODO%32;Item%32;here%62;%10;</description>

</todoitem>

</todolist>

<resolvedcritics>

</resolvedcritics>

</todo>

</uml>



et pour le fichier XSL:[/#indigo]


<?xml version='1.0' encoding='iso-8859-1' ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD SVG 20010904//EN" doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" />



<xsl:template match="/">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<xsl:apply-templates/>
</svg>
</xsl:template>


<xsl:template match="uml">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<defs>

<symbol id="acteur">
<circle cx="20" cy="20" r="10" fill="@fill" stroke="@strokecolor" stroke-width="@stroke"/>
<path d="M20,30 L20,60" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;"/>
<path d="M5,45 L35,45" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;"/>
<path d="M20,60 L5,80" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;"/>
<path d="M20,60 L35,80" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;"/>

</symbol>

<symbol id="fleche_pointille">
<!--marker id="Triangle" viewBox="0 0 10 10" refX="0" refY="5" style="stroke-linecap:bust; stroke-dasharray:10 5"
markerUnits="strokeWidth"
markerWidth="4" markerHeight="3"
orient="auto"-->
<!--path d="M 0 0 L 10 5 L 0 10 z" /-->
<!--/marker-->
</symbol>

</defs>
<xsl:apply-templates select="pgml"/>
</svg>
</xsl:template>



<xsl:template match="pgml">
<xsl:apply-templates/>
</xsl:template>



<xsl:template match="rectangle">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<xsl:if test="not(rectangle/@rounding)">
<rect x="@x" y="@y" width="@width" height="@height" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;">
</rect>
</xsl:if>

<xsl:if test="rectangle/@rounding">
<rect x="@x" y="@y" width="@width" height="@height" rx="@rounding" ry="@rounding" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;">
</rect>

</xsl:if>
<xsl:apply-templates/>
</svg>

</xsl:template>



<xsl:template match="text">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<text x="@x" y="@y" style="font-size:@textsize fill:@fill font-family:font; stroke:@strokecolor; stroke-width:@stroke;">
<xsl:value-of select="pgml/text"/>
</text>

<xsl:apply-templates/>
</svg>
</xsl:template>



<xsl:template match="ellipse">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<ellipse cx="@x" cy="@y" rx="@rx" ry="@ry" style="fill:@fill; stroke:@strokecolor; stroke-width:@stroke;"/>
<xsl:apply-templates/>
</svg>
</xsl:template>



<xsl:template match="path">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<path d="M moveto/@x,moveto/@y L lineto/@x,lineto/@y L lineto/@x,lineto/@y" style="fill:@fill; stroke:@strokecolor; stroke-width: @stroke"/>
<xsl:apply-templates/>
</svg>
</xsl:template>




<xsl:template match="group">
<xsl:if test="description='org.argouml.uml.diagram.use_case.ui.FigActor'">
<svg width="100%" height="100%" viewBox="0 0 1500 1000">
<use xlink:href="#acteur" style="fill:@fill; stroke:@strokecolor; stroke-width: @stroke"/>
</svg>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>



</xsl:stylesheet>



Le problème, c ke qd je crée ma feuille SVG, elle mets toujours ds les valeurs des attributs, celles que j'avais mis sur la feuille XSL, par ex, @fill,... et l' Explorateur me dit que g une erreur de descripteur..

merci de m'aider!!

++

Modifié par MissCacahuette (30 Jul 2005 - 16:21)
Bonjour MissCacahuette,

Pour augmenter sensiblement tes chances de recevoir une réponse, et pour respecter les Règles du forum, pourrais-tu :
- éviter l'emploi systématique de la couleur (peu lisible)
- utiliser le [ code ] ... [ /code ] pour baliser tes exemples de code (peu lisibles)
- éviter le SMS (... peu lisible Smiley lol )

<edit> : peut-être qu'un extrait de ton très long fichier XML serait suffisant ?</>
Modifié par Laurent Denis (30 Jul 2005 - 16:28)