[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: html tables with XSL
Hi Charls, Am not sure the below mail is clear for you. Otherwise, please let me know. If could help to resolve the problem, then it should be very much appreciated. Thanks & Regards, Deepak --- Deepak <deepak_vn@xxxxxxxxx> wrote: > Hi Charls, > > > In your sample data you have this element: > > > > <elementid>Template[0]/NAME[0]/Value</elementid> > > Its just an identifier rather than actual value. The > actual value will be inside a editbox or it may be > as > in normal element shown in the xml file. > > I feel <elementid> is the just an identifier to > identify the value. The html table will display > caption:value(s) for 'template[0]' in the first > column, next column is caption:value(s) for element > id > 'profile[0]'. > > The only difference is , if there is more than one > profile(say profile[1], profile[2]), then it should > be > displayed nextrow with same caption:value pair for > the template[0] and next column is filled with > caption:value(s) for element id 'profile[1]'. > > <FormElements> > <FormElement version="0.1"> > <value> > <editbox password="false">Sam</editbox> > </value> > <caption>Name</caption> > <elementid>Template[0]/NAME[0]/Value</elementid> > </FormElement> > <FormElement version="0.1"> > <value> > <editbox password="false">Test</editbox> > </value> > <caption>Org</caption> > <elementid>Template[0]/NAME[1]/Value</elementid> > </FormElement> > <FormElement version="0.1"> > <value>VALUEx0<value> > <caption>KeyName </caption> > <elementid>Profile[0]/KeyValueString</elementid> > </FormElement> > <FormElement version="0.1"> > <value>VALUEx1<value> > <caption>KeyStrength</caption> > <elementid>Profile[0]/KeyValueInteger</elementid> > </FormElement> > <FormElement version="0.1"> > <value>VALUEy0<value> > <caption>KeyName</caption> > <elementid>Profile[1]/KeyValueString</elementid> > </FormElement> > <FormElement version="0.1"> > <value>VALUEy1<value> > <caption>KeyStrength</caption> > <elementid>Profile[1]/KeyValueInteger</elementid> > </FormElement> > <FormElement version="0.1"> > <value>VALUEy2<value> > <caption>KeyUsage</caption> > <elementid>Profile[1]/KeyValueString</elementid> > </FormElement> > </FormElements> > > HTML display may looks like : > > Name Keys > -------------------------------- > Name:Sam KeyName : Valuex0 > Org :US KeyStrength: Valuex1 > > -------------------------------- > Name: Sam KeyName : Valuey0 > Org : US KeyStrength : Valuey1 > KeyUsage : Valuey2 > > > I hope , it may clear for you. Thanks for helping me > to solve the problem. > > Thanks and Regards,Deepak > > --- cknell@xxxxxxxxxx wrote: > > > In your sample data you have this element: > > > > <elementid>Template[0]/NAME[0]/Value</elementid> > > > > In your schematic version of your desired output, > I > > get the impression that you want to evaluate the > > string that is the text of the <elementid> element > > as if it were an XPath expression rather than > > reproducing the text itself. Is that correct? > > -- > > Charles Knell > > cknell@xxxxxxxxxx - email > > > > > > > > -----Original Message----- > > From: Deepak <deepak_vn@xxxxxxxxx> > > Sent: Thu, 19 Jan 2006 02:06:06 -0800 (PST) > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: RE: RE: RE: RE: html tables with > XSL > > > > Hi Charles, > > > Specifically, which elements in the input file > > > provide the values for the output file? > > > > I have to map caption and value from the editbox > or > > a > > normal element for each formelement node. > > > > I have to order caption and value for Template[0] > in > > single column and profile[0] is on next column. > Here > > the xml file may contain more than one > > profile(profile[1] or ..) for a single template . > So > > i > > have to display the table like > > > > <table> > > Template_Column > > Profile_column > > <row1> > > caption : value(template[0]/name[0]) > > caption:value(profile[0]) > > caption : value(template[0]/name[1]) > > caption:value(profile[0]) > > </> > > <row2> > > caption : value(template[0]/name[0]) > > caption:value(profile[1]) > > caption : value(template[0]/name[1]) > > caption:value(profile[1]) > > </> > > </> > > > > I am not sure is that clear for you. Please let me > > know if anything that you needed to solve my > query. > > > > Thanks and Regards, > > Deepak > > > > > > > > > > > > > > > -----Original Message----- > > > From: Deepak <deepak_vn@xxxxxxxxx> > > > Sent: Wed, 18 Jan 2006 07:10:41 -0800 (PST) > > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > Subject: RE: RE: RE: html tables with XSL > > > > > > Hi All, > > > > > > Is somebody could help me to resolve the problem > > > described in the below mail. > > > > > > Thanks,Deepak > > > > > > > > > --- Deepak <deepak_vn@xxxxxxxxx> wrote: > > > > > > > > Thanks for the mail. > > > > > > > > > > Actually my XML file is bit different that > the > > > > > sample > > > > > file the i sent to you. It contains several > > > nodes > > > > > under 'FormElement' node, i think in that > > > > situation > > > > > that solution is not feasible. > > > > > > > > > > <FormElements> > > > > > <FormElement version="0.1"> > > > > > <value> > > > > > <editbox > password="false">Sam</editbox> > > > > > </value> > > > > > <caption>Name</caption> > > > > > > > > > > > > <elementid>Template[0]/NAME[0]/Value</elementid> > > > > > </FormElement> > > > > > <FormElement version="0.1"> > > > > > <value> <editbox > > > > > password="false">Test</editbox></value> > > > > > <caption>Org</caption> > > > > > > > > > > > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|