xml to graphml
hi there,
i am a beginner in XSLT. i tried for two days to convert a graph made in visio to graphml. i managed with the nodes, but have problems with the links can anyone help please. here are the source and the target XML
<?xml version='1.0' encoding='utf-8' ?>
<Connects>
<Connect FromSheet='4' FromCell='BeginX' FromPart='9' ToSheet='1' ToCell='Connections.X2' ToPart='101'/>
<Connect FromSheet='4' FromCell='EndX' FromPart='12' ToSheet='2' ToCell='Connections.X4' ToPart='103'/>
<Connect FromSheet='5' FromCell='BeginX' FromPart='9' ToSheet='1' ToCell='Connections.X1' ToPart='100'/>
<Connect FromSheet='5' FromCell='EndX' FromPart='12' ToSheet='3' ToCell='Connections.X3' ToPart='102'/>
<Connect FromSheet='7' FromCell='BeginX' FromPart='9' ToSheet='6' ToCell='Connections.X4' ToPart='103'/>
<Connect FromSheet='7' FromCell='EndX' FromPart='12' ToSheet='3' ToCell='Connections.X2' ToPart='101'/>
</Connects>
<?xml version="1.0" encoding="UTF-8"?>
<graph>
<edge id="4" source="1" target="2"/>
<edge id="5" source="1" target="3"/>
<edge id="7" source="6" target="9"/>
</graph>
thanks in advance.
krasimir
|