aspose file tools*
The moose likes XML and Related Technologies and the fly likes Creating a chart using xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Creating a chart using xslt" Watch "Creating a chart using xslt" New topic
Author

Creating a chart using xslt

R Lynn
Greenhorn

Joined: Feb 12, 2004
Posts: 11
I need to be pointed in the right direction on the following problem. I have an xml document, and I will be using a xslt stylesheet to create a nxn matrix in an html document that shows the relationships between two of the elements on the document. For example:
<doc1>
<a><s1>...</s1><s5>...</s5>...</a>
<b><s2>...</s2><s11>...</s11>...</b>
<c><s1>...</s1><s7>...</s7>...</c>
<d><s4>...</s4><s7>...</s7>...</d>
...
</doc1>
s1 s2 s3 s4 s5 s6 ...
---------------------------------------
a X X
b X
c X
d X
...
Can anyone give me some guidelines for starting this out? This needs to work for .NET but I work with Xalan.
Thanks!
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Are you looking for guidelines about XSL in general (tutorials, tutorials, tutorials...) or the particular problem of producing a matrix?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
R Lynn
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Thanks for the quick reply...just the problem of producing the matrix.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You can use this stylesheet as a starting point.

It produces an output similar to this:
R Lynn
Greenhorn

Joined: Feb 12, 2004
Posts: 11
Thanks!
 
 
subject: Creating a chart using xslt