homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

XSLT Processing shows just all the nodes (striped)

Msg#: 4167166 posted 1:12 pm on Jul 9, 2010 (gmt 0)

I have a massive XML coming from an export of the Identity Management Console (9.5 MB). The XML is Valid but contains text of all sorts (Arabic and other language written from right to left).

The TASKs are correctly described and I can therefore use these information to create a graph of dependencies by generating a dot-file and then send it to GraphViz.

Here is the beginning of my XML.
<?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=" " ObjectType="EXPORT_IDENTITY_STORE" Schema_Version="543">

In that file, I have TASKS node containing TASKs (I hope this is clear).
I wrote a small XSLT :
<?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"];
<xsl:apply-templates select="*" />

<xsl:template match="TASK">


My problem is that I can view the "content" of all the nodes :
<?xml version="1.0" encoding="UTF-8"?>

Field with single line

Field with multiple line

while I am expecting to see as many "TEST" being written as there are TASKs
Last relevant info. I use a small ANT build-file to execute the XSL-Transform.

Any idea why I see the "Field with single line" instead of other things ?



Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved