| From | Sent On | Attachments |
|---|---|---|
| Jones Mark Mr (ITCS) | Mar 18, 2008 7:29 am | |
| Andrew Welch | Mar 18, 2008 8:27 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 9:32 am | |
| Martin Honnen | Mar 18, 2008 9:37 am | |
| David Carlisle | Mar 18, 2008 9:37 am | |
| Jones Mark Mr (ITCS) | Mar 18, 2008 10:10 am | |
| ac | Mar 18, 2008 10:10 pm | |
| ac | Mar 18, 2008 10:25 pm | |
| Mukul Gandhi | Mar 19, 2008 1:28 am | |
| Michael Kay | Mar 19, 2008 2:15 am | |
| Michael Kay | Mar 19, 2008 2:21 am | |
| David Carlisle | Mar 19, 2008 3:01 am | |
| Patrick Bergeron | Mar 19, 2008 7:17 am | |
| David Carlisle | Mar 19, 2008 7:28 am | |
| Wendell Piez | Mar 19, 2008 9:44 am | |
| Michael Kay | Mar 19, 2008 10:21 am | |
| ac | Mar 19, 2008 10:33 am | |
| Ken Tam | Mar 19, 2008 9:49 pm | |
| Dimitre Novatchev | Mar 19, 2008 10:38 pm | |
| Dimitre Novatchev | Mar 20, 2008 6:34 am | |
| Michael Kay | Mar 20, 2008 7:31 am |
| Subject: | [xsl] Graph processing | |
|---|---|---|
| From: | Ken Tam (ken...@proteustech.com) | |
| Date: | Mar 19, 2008 9:49:21 pm | |
| List: | com.mulberrytech.lists.xsl-list | |
Hi all,
I need to process graphs in GraphML format. For example,
given the following graph:
A / | \ B C D / \ E F / \ / \ G H I / \ J K
will be represented in GraphML as:
<?xml version="1.0" encoding="UTF-8"?> <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> <graph id="G" edgedefault="directed"> <node id="A"/> <node id="B"/> <node id="C"/> <node id="D"/> <node id="E"/> <node id="F"/> <node id="G"/> <node id="H"/> <node id="I"/> <node id="J"/> <node id="K"/> <edge source="A" target="B"/> <edge source="A" target="C"/> <edge source="A" target="D"/> <edge source="B" target="E"/> <edge source="B" target="F"/> <edge source="E" target="G"/> <edge source="E" target="H"/> <edge source="F" target="H"/> <edge source="F" target="I"/> <edge source="H" target="J"/> <edge source="H" target="K"/> </graph> </graphml>
One sample process is to find all paths starting from "B" passing through "H" ending in "K". The results are:
B->E->H->K B->F->H->K
Can XSL/XPATH be used to find the paths? or a transformation needs to be done first from graph to tree with ID and IDREF before applying XPATH axis expressions. This is just a simple example and the real graphs contain many shared paths. Thus, a tree representation will be very large with many duplicated branches.
Thanks, Ken
--~------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-...@lists.mulberrytech.com> --~--





