
May 18th, 2011, 09:18 AM
|
 |
cave painting, the 1st Opn Src
|
|
Join Date: Jun 2003
Posts: 532
Time spent in forums: 1 Day 16 h 3 m 34 sec
Reputation Power: 0
|
|
|
Manipulate xsl like an sql query
Code:
--- xml file ----
<SEC>
<ROLE profile="prod" >
<SecClassName>FilesAC</SecClassName>
</ROLE>
<ROLE profile="prod" >
<SecClassName>FilesAD</SecClassName>
</ROLE>
<ROLE profile="test" >
<SecClassName>FilesAC</SecClassName>
</ROLE>
<ROLE profile="test" >
<SecClassName>FilesAM</SecClassName>
</ROLE>
<SEC>
---- xsl file ----
<xsl: value-of select="if (SEC/ROLE/@profile ="<?pho echo $Profile ?>")">
I can get the data to return as a list, Not I'm trying to translate my sql thought process to xpath and I'm looking for the 'Distinct' and 'where' clause.
I want to return a 'Distinct' list of @profile, This will be my var array (radiobuttons), $Profile EDIT: Ah Ha, use distinct-values for node
then, on another page, I want to show the SecClassName 'Where' it matches @profile=' . $Profile .'
__________________
Curious by Nature,
Linux by Choice
Lawson ERP reference tools: Lawsuss.com
Last edited by dba_frog : May 23rd, 2011 at 08:00 AM.
|