|
Subject: [xsl] Advice for XSL development From: Pierre-Yves <pingou@xxxxxxxxxxxx> Date: Fri, 24 Oct 2008 11:50:47 +0200 |
I am looking for some help about my xsl. There are the information from http://www.mulberrytech.com/xsl/xsl-list/processor-version.xsl > XSLT Processor Version > XSL version: 1 > Vendor: Transformiix > Vendor URL: http://www.mozilla.org/projects/xslt/ > Product name: [Undefined] > Product version: [Undefined] > Is schema-aware: [Undefined] > Supports serialization: [Undefined] > Supports backwards compatibility: [Undefined]
There is my question: I would like to transform some XML to div that contains a list.
XML input:
--------------------------------------------------------------
<Simple>
<OSE>
<String articleName="Description">some blabla</String>
<String articleName="Name">test1</String>
<Integer articleName="Id">681</Integer>
<String articleName="FactorValue">Value1</String>
</OSE>
</Simple>
<Simple>
<OSE>
<String articleName="Description">some blabla</String>
<String articleName="Name">test1</String>
<Integer articleName="Id">682</Integer>
<String articleName="FactorValue">Value2</String>
</OSE>
</Simple>
<Simple>
<OSE>
<String articleName="Description">some blabla</String>
<String articleName="Name">test2</String>
<Integer articleName="Id">683</Integer>
<String articleName="FactorValue">Value3</String>
</OSE>
</Simple>
<Simple>
<OSE>
<String articleName="Description">some blabla</String>
<String articleName="Name">test2</String>
<Integer articleName="Id">684</Integer>
<String articleName="FactorValue">Value4</String>
</OSE>
</Simple>
--------------------------------------------------
Basically I would like to transform that to:
<table> <tr onclick="dosomething('test1')">
<td>test1</td>
<td>some blabla</td>
</tr>
<tr>
<td>
<table id="test1">
<tr>
<td>Value1</td>
<td>681</td>
</tr>
<tr>
<td>Value2</td>
<td>682</td>
</tr>
</table>
</td>
</tr> <tr onclick="dosomething('test2')">
<td>test2</td>
<td>some blabla</td>
</tr>
<tr>
<td>
<table id="test2">
<tr>
<td>Value3</td>
<td>683</td>
</tr>
<tr>
<td>Value4</td>
<td>684</td>
</tr>
</table>
</td>
</tr></table> ------------------------------------------------------
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [no subject], Unknown | Thread | Re: [xsl] Advice for XSL developmen, Martin Honnen |
| Re: [xsl] Elements and functions av, Colin Paul Adams | Date | Re: [xsl] Advice for XSL developmen, Martin Honnen |
| Month |