Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. How to filt some items when transform xml to html with xslt?

How to filt some items when transform xml to html with xslt?

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlcomtutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    guiqul163
    wrote on last edited by
    #1

    Hi guys, I create a xml file like this by program: <condition>disp='1'</conditions> <item> <disp> 1 </disp> <otheritem> f</otheritem> <item> <item> <disp> 2 </disp> <otheritem> w</otheritem> <item> <item> <disp> 3 </disp> <otheritem> w</otheritem> <item> I use xslt to transform this xml file to html. But I don't want to show some items, such as, when disp='1', I don't want to show it to users. In here, the condition is variational. Maybe it's disp!='4', maybe it's otheritem = '53g'. when I show the items with xslt, how to filt these items? I try to add the condition to the xml file, and get it in the xslt. But it can't work normally. Can anyone give me any suggestions? Thanks & regards.

    ========================================= Make friends with you all. My Blog, welcome
    ???????,????????

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups