Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I know my basics and I have difficulties implementing it altogether.

I have a projects.xml file containing the list of all my customers projects.
My web page should by default show all projects, or filter projects by project Name or Customer.

I want to know what is best practice when applying my filters:
- apply a different xsl to each filter
- use asp to access xml and filter the info before it is sent to xsl

if I need to select all the projects for Customer A, would I use xls (for-each) or ASP using DOM functions?

Example of the xml:
XML
<projects>
   <project>
       <projname>Project A1</projname>
       <customer>A</customer>
   </project>
   <project>
       <projname>Project A2</projname>
       <customer>A</customer>
   </project>
   <project>
       <projname>Project B</projname>
       <customer>B</customer>
   </project>
</projects>
Posted
Updated 28-Jun-11 16:57pm
v2

1 solution

You don't need seperate XSLT for each filter. Pass a parameter to the XSLT
http://projects.ischool.washington.edu/tabrooks/545/ContentManagement/PassingParameters.htm[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900