Bonjour
je n'arrive pas à appliquer mon XSLT sur un fichier avace un namespace particulier...
Mon XSL fonctionne à merveille si je remplace <y: par < et </y: par </ et que je supprime les namespace de mon XML....
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 <?xml version="1.0" encoding="UTF-8" standalone="no"?> <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> <!--Created by yFiles for Java HEAD-Current--> <key for="graphml" id="d0" yfiles.type="resources"/> ... ... <data key="d11"> <y:ProxyAutoBoundsNode> <y:Realizers active="0"> <y:GroupNode> ...
Sinon j'obtient un output vide...
Mon XSL ressemble à ca :
des idées?
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 <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" > <xsl:output method="xml" encoding="UTF-8" indent="yes" xalan:indent-amount="2"/> <xsl:template match="/"> <workflows> <workflow id="{graphml/graph/data}"> <properties> <xsl:for-each select="graphml/graph/data/*"> <xsl:copy> <xsl:apply-templates select="@* | node()" /> ...
Merci,
P.
Partager