Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Challenging transformation

From: Danny Vucinec@-----------.---------.---
To: NULL
Date: 2/16/2007 1:43:00 AM

I'm working on a transformation, but can't seem to find the solution. I've 
the following data xml:

<data>
	<fieldOrder>
		<c/><a/><b/><e/><d/>
	</fieldOrder>
	<boldFields>
		<a/><e/>
	 </boldFields>
	<rows>
		<row>
			<a>a1</a><b>b1</b><c>c1</c><d>d1</d><e>e1</e>
		</row>
		<row>
			<a>a2</a><b>b2</b><c>c2</c><d>d2</d><e>e2</e>
		</row>
	</rows>
</data>

I'd like to transform this to an html table in which the fields are ordered 
according to the elements in <fieldOrder>. Furthermore, the text of fields 
defined in <boldFields> should be bold. The output should be like this:

<table>
	<tr>
		<td>c1</td>
		<th>a1</th>
		<td>b1</td>
		<th>e1</th>
		<td>d1</td>
	</tr>
	<tr>
		<td>c2</td>
		<th>a2</th>
		<td>b2</td>
		<th>e2</th>
		<td>d2</td>
	</tr>
</table>

Does anyone have any ideas on this?


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent