Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Grouping/Sorting Problem [Thread Next] Re: Grouping/Sorting ProblemTo: NULL Date: 10/6/2006 12:07:00 PM Michelle, Thank you for your reply. I have been using the nodeset function and do come close but of course not just right. Is it possible to use one xsl file to generate an xml file and then also process the newly created xml file into HTML display? Thank you, Sarah "Michelle Carlson" wrote: > Sarah, > Explore using the XSLT processor's nodeset function or use XSLT 2.0. > I don't think you can do what you need to using a single transform and > XSLT 1.0 without using processor extension functions. > I was able to get the information grouped and sorted, but can't > reference that nodeset in XSLT 1.0 to display the values in tabular > columns without using the nodeset extension function specific to my > XSLT processor. To avoid processor extensions and use XSLT 1.0, you'd > need to do multiple transformations. > 1. XML to XML transform to group and sort the nodes; your result > transform might look something like this: > <Data> > <Module displayOrder="10" nID="4656" name="Base Unit Module"> > <Category displayOrder="10" nID="21" name="Unit"/> > <Perf_Category displayOrder="10" nID="91" name="Elevation"/> > <Category displayOrder="20" nID="67" name="Unit Roof"/> > <Perf_Category displayOrder="30" nID="10" name="Unit Airflow"/> > <Perf_Category displayOrder="40" nID="13" name="Htg"/> > <Category displayOrder="50" nID="43" name="Frame"/> > </Module> > <Module displayOrder="20" nID="4658" name="Fan Module"> > <Category displayOrder="10" nID="96" name="Fan Module"/> > <Category displayOrder="20" nID="63" name="Fan Size"/> > <Perf_Category displayOrder="20" nID="23" name="Airflow"/> > <Perf_Category displayOrder="90" nID="30" name="AbsPower"/> > </Module> > </Data> > </Selection> > 2. XML to HTML transform to generate the table using position of nodes > to determine whether they are in the first or second column. > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
