I want to output a series of relationships from xml files and convert them to a graph that I generate with a dot. I obviously can do this with a script, but I was curious if this is possible with xslt. Sort of:
xsltproc dot.xsl *.xml
which will create a file of type
diagraph {
state -> state2
state2 -> state3
[More state relationships from *.xml files]
}
Therefore, I need to: 1) wrap the combined xml transforms using "diagraph {...}" and 2) be able to process an arbitrary set of XML documents specified on the command line.
Is it possible? Any pointers?
Jb
source
share