Subject: RE: Copying and Transforming/Recursion? - Revisited From: Kay Michael <Michael.Kay@xxxxxxx> Date: Thu, 12 Oct 2000 09:43:10 +0100 |
This is exactly what the "push" style of processing using xsl:apply-templates is designed for. Write a template rule that matches the <input> element and it will do its stuff regardless where the <input> element appears. Mike Kay > -----Original Message----- > From: Jeff Saylor [mailto:JSaylor@xxxxxxxxxxxxxxxxx] > Sent: 11 October 2000 20:09 > To: xsl-list@xxxxxxxxxxxxxxxx > Subject: Copying and Transforming/Recursion? - Revisited > > > Let me try rephrasing and earlier question from a different angle... > > At the highest level, I want an author to be able to create XHTML: > > <html> > <body> > name <input fieldname='name' type='text' value='' /> > title <input fieldname='title' type='text' value='' /> > </body> > </html> > > I want to be able to apply the following XML data against it: > > <submittedValues> > <submittedValue fieldname='title'>mr.</submittedValue> > </submittedValues> > > So that the appropriate <submittedValue>'s text is inserted into the > corresponding <input>'s value, resulting in something like: > > <html> > <body> > name <input fieldname='name' type='text' value='' /> > title <input fieldname='title' type='text' value='mr.' /> > </body> > </html> > > Note that the format inside of the author's <html> can not be > assumed ahead > of time - since it may change dynamically. > > It seems to me that the author's document needs to be copied > - element for > element (via recursion?) - to the output and transformed > against the data > along the way. But I can't seem to get a mental handle on > how to do it... > > Appreciation in advance for any and all input - it's greatly > appreciated! > > > Cheers, > > > Jeffrey J. Saylor > Senior Internet Developer > Wizard Finance Systems > 707 Mendham Blvd., Suite 104 > Orlando, FL 32825 > Phone: (407) 262-9000 Ext 266 > Fax: (407) 262-9010 > Email: jsaylor@xxxxxxxxxxxxxxxxx <mailto:jsaylor@xxxxxxxxxxxxxxxxx> > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Copying and Transforming/Recurs, David Carlisle | Thread | RE: Copying and Transforming/Recurs, Jeff Saylor |
Re: How to highlight arbitrary elem, Sebastian Rahtz | Date | XSLT plugin into Netscape 4.0, Miloslav Nic |
Month |