From: Eric van der Vlist (vdv@dyomedea.com)
Date: 20/07/2004 - 15:51
On Tue, 2004-07-20 at 17:30, Aguero, Dimitri wrote:
> Bonjour,
>
> Toujours debutant trois ans après, je vous dérange un peu pour une
> question très stupide.
>
> Je dois faire le match pour ce noeud d'un document XML:
>
> <UML:Diagram xmi.id="1094" name="BPA-BAG-Arrival"
> diagramType="ActivityDiagram" owner="1025" toolName="Provision
> Workbench"/>
>
>
> Voici la règle de match:
>
> <xsl:template match="Diagram">
> <xsl:value-of select="@name" />
> <xsl:value-of select="@diagramType" />
> </xsl:template>
>
> Je sais que je dois mettre un UML quelque part, mais je suis arrivé a
> un blocage mental et je ne sais pas commment faire pour qu'il le
> prenne.
Il faut déclarer l'espace de nom UML dans la transformation :
<xsl:stylesheet xmlns:UML="<URI de l'espace de noms UML>" ...
et utiliser ce préfixe dans vos expressions XPath :
<xsl:template match="UML:Diagram">
Voir aussi http://xmlfr.org/documentations/faq/010105-0003.
Cordialement,
Eric van der Vlist
--
Don't you think all these XML schema languages should work together?
http://dsdl.org
Upcoming XML schema languages tutorial:
- Portland -half day- (27/07/2004) http://masl.to/?E6ED13728
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 30/07/2004 - 13:32 UTC
webmaster@xmlfr.org
|