[oXygen-user] Newbie question on XSLT - how to generate table columns dynamically
Jamie Wang
Fri Jun 16 13:01:10 CDT 2006
Hi, I am new to XSLT and have a question on how to dynamically generate
columns in XSL style sheet that can be applied generic xml files that
has the same document structure but with different number of columns and
column names. The XML file is shown below. In this case, the number of
columns is 3 and column names are the elements' name (e.g., COUNTRY_ID,
COUNTRY_NAME and REGION_ID. Thanks in advance for your assistance.
-Jamie
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl"
href="http://rome:18080/countries.xsl"?>
<result>
<row>
<COUNTRY_ID>AR</COUNTRY_ID>
<COUNTRY_NAME>Argentina</COUNTRY_NAME>
<REGION_ID>2.0</REGION_ID>
</row>
<row>
<COUNTRY_ID>AU</COUNTRY_ID>
<COUNTRY_NAME>Australia</COUNTRY_NAME>
<REGION_ID>3.0</REGION_ID>
</row>
result>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20060616/c4bdf0f6/attachment.html
More information about the oXygen-user
mailing list