@ tefigel if TAG_ID=table # # On exiting a node of the XML model, process list of class' fields # twice to generate a header and a series of assignment statements. # # Create a new ASPX file under directory "asp" output asp/CUR_ASP_CLASS.aspx # Generate header information @ text <%@ Import Namespace="DataLibrary" %>Test page for CUR_ASP_CLASS
@ for FNAME=~list_contents(CUR_ASP_FIELDS) @ endfor <%CUR_ASP_CLASS dobj = new CUR_ASP_CLASS(); ArrayList allData = dobj.GetAll(); foreach (Hashtable item in allData ) { %> @ for FNAME=~list_contents(CUR_ASP_FIELDS) @ endfor <% } %>
~to_Upper(FNAME)
<%= item[ "~to_lower(FNAME)" ] %>
@ endtext # # Clean up table-specific information. # delete_list(CUR_ASP_FIELDS) unset CUR_ASP_CLASS endif