Subject: RE: [xsl] Abstracting XSLT to generate multiple forms for the same From: "Johnathon Wright" <jw@xxxxxxxxxxxxx> Date: Wed, 1 Feb 2006 15:26:38 -0600 |
<field_definition> <name>username</name> <type>text</type> </field_definition> <data> <username>eattabasco</username> <full_name>Johnathon Wright</full_name> </data>
--------------------------------------------------------------- ALTERNATE SITUATION:
full_name: Johnathon Wright ----------------------------------------------------------------
<define_form> <form_name>Modify Users</form> <data_type>user</data_type> <instructions>blah</instructions> ... <define_form>
<!-- now comes the list of fields -- many fields removed for brevity --> <define_field> <field_name>first_name</field_name> <field_name_formatted>First Name</field_name_formatted> <field_type>text</field_type> <max_length>100</max_length> </define_field> <define_field> <field_name>user_type</field_name> <field_name_formatted>User Level</field_name_formatted> <field_type>select</field_type> <options> <option> <name>Customer</name> <value>8</value> </option> <option> <name>Seller</name> <value>16</value> </option> <option> <name>Administrator</name> <value>32</value> </option> </options> </define_field>
<!-- and the data to populate it. --> <user> <username>jw@xxxxxxxxxxxxx</username> <first_name>Johnathon</first_name> <last_name>Wright</last_name> <user_type>032</user_type> <last_login>2006-01-31 10:43:32</last_login> <opt_in>0</opt_in> </user>
Date: Tue, 31 Jan 2006 14:38:19 -0500
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
From: cknell@xxxxxxxxxx
Subject: RE: [xsl] Abstracting XSLT to generate multiple forms for the same
data schema
Message-ID: <B0050176025@xxxxxxxxxxxxxxxxxxxxx>
The good news is that you most likely won't have to have "loops running through seperate nodes" (an elementary school teacher once told me to remember that there is "a rat" in separate).
The bad news is that your message isn't clear in regard to what you want. If what you want is to revisit a node or set of nodes in your XML document more than once with different output on each visit, investigate the "mode" attribute on <xsl:template> and <xsl:apply-templates>.
"invariables" actually make things simpler in that they eliminate a group of potential bugs caused by "side effects". All you have to do is un-learn loops and learn apply-templates instead.
Give us a chance to help by being clear in what you need. -- Charles Knell cknell@xxxxxxxxxx - email
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Language-specific output, David Carlisle | Thread | Re: [xsl] Abstracting XSLT to gener, António Mota |
RE: [xsl] xdt:yearMonthDuration eq , Michael Kay | Date | RE: [xsl] What does the phrase "dup, Michael Kay |
Month |