XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 18th, 2011, 09:18 AM
dba_frog's Avatar
dba_frog dba_frog is offline
cave painting, the 1st Opn Src
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 532 dba_frog Negative: is most likely a SPAMMER and a traitor to the cause. 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Manipulate xsl like an sql query

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap