Dear,
I have an export from the Microsoft Control Center. (Identity Management from SAP runs there). The file is a massive 10 Mb & I expect it to contains all the information about the tasks dependencies.
The file looks like this :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<IDM Exported_on="2010-07-08 12:12:43.517" ImXport_Version="v.7.10.0-710_COR-BUILD-23.10.2008_17:03:45" MC_Version="7.10.3.1-SQL-2009-11-13 " ObjectType="EXPORT_IDENTITY_STORE" Schema_Version="543">
<PRESENTATIONTYPES>
<TYPE>
<PRESENTATIONDESCRIPTION>Field with single line</PRESENTATIONDESCRIPTION>
<PRESENTATIONNAME>SingleLine</PRESENTATIONNAME>
<PRESENTATIONID>1</PRESENTATIONID>
</TYPE>
<TYPE> ....
Around the middle of the file, you have :
Code:
<TASKS>
<TASK> ... </TASK>
<TASK> ... </TASK>
</TASKS>
each TASK-node is app. 100 subelements from whihc I can retrieve the parents & the childs TASK's.
I made a small XSL to see if I could retrieve some of the informations :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
<xsl:output method="text" indent="no" encoding="utf-8"/>
-->
<xsl:template match="/IMD/IDENTITY_STORE_TOP/TASKS">
<xsl:text disable-output-escaping="yes">
digraph project {
node [shape=box,fontname="Arial",fontsize="10"];
edge [fontname="Arial",fontsize="8"];
rankdir=LR;
<xsl:apply-templates select="*" />
}
</xsl:text>
</xsl:template>
<xsl:template match="TASK">
<xsl:text>TEST</xsl:text>
</xsl:template>
</xsl:stylesheet>
The aim is to generate a DOT-file and visualize the tasks dependencies with
GraphViz.
However the result is not as I expect : as many test as there are TASKs... but all the node content striped down like what follows :
Quote:
<?xml version="1.0" encoding="UTF-8"?>
Field with single line
SingleLine
1
Field with multiple line
MultiLine
2
...
|
Why the F#@* ... do I see these node content ?
I try to filter as much as I can by requesting:
match="/IMD/IDENTITY_STORE_TOP/TASKS"
So why do I see informations from the nodes under /IDM ?
Last but not least I use for my XSLT processing ANT XSLT task from v1.8 running on SnowLeopard with the JDK 1.6.0
Quote:
Thomas-SMETSs-MacBook-Pro:test-mcc tsmets$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
|
Help would be greatly appreciated !
\T,