473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to remove 2 same blocks of xslt and make it dynamic?

I am new to XSLT so need help from you guys!
XML file :
Expand|Select|Wrap|Line Numbers
  1. <Employees>
  2.  <Employee ID="1">
  3.    <Name>Shweta</Name>
  4.  <Employee ID="2">
  5.    <Name>Ashish</Name>
  6.  <Employee ID="3">
  7.    <Name>Shikha</Name>
  8. </Employees>
So I want based on employee IDs it should pick employee data.
But ID value should not be hardcoded.

But currently I am using "xsl:choose and when" and "xsl:if" to pick data based on ID which is becoming redundant and XSL is becoming bulky.
So I want to optimize my code.
Please suggest any way of doing the same.
Sep 5 '19 #1
0 2237

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ask Josephsen | last post by:
Hi NG When I use the GD library on php I can't seem to find a way to generate dynamic shadows on my images? Do I have to draw it my self or is there a way?? Thanks Med Venlig Hilsen
3
by: Danny | last post by:
How do you guys make listings such as product listings and their detail pages more crawler friendly, if they are genrated using dynamic asp pages. If your ASP uses a format like this:...
1
by: OM | last post by:
I am trying to present tree-structure information using a html table and JavaScript. Each tree node is displayed in the first column in a table row. The tree node can also have additional...
10
by: moondaddy | last post by:
I'm writing an ecommerce app in asp.net/vb.net and need to make the pages searchable and crawlable by spiders, particularly Google's. As far as I know, if my pages's contents are mostly populated...
2
by: Terry Olsen | last post by:
I want to have a series of DropDownLists appear. On PageLoad, the first list is created. When I make a choice, a 2nd list is created, data loaded depending on the choice from the first list, and...
3
by: C#_learner | last post by:
Hi!!, I have a table which i wanna print. what i wanted to do is, print the header and footer in every new page i am printing. The table which i am getting data is a dynamic table and with...
2
by: anniejacob | last post by:
hi, I am making a dynamic form which i have to put some labels which r 2 b dynamic.n i have to make 'n' number of labels dynamically. label me = new label(); This is the line im using to...
0
by: manssi | last post by:
how to make dynamic editor menu in asp.net i have made application in asp.net but i have no coding for editor menu i want the menu in following order-- forms ..subforms .....subforms
3
by: Peter K | last post by:
Hi I need to make a list of "download file links" on a webpage. All the data is dynamic - it depends on the user's actions how many files, and which files, I need to present in the list. The...
1
by: ciem | last post by:
Hi everbody, i want to remove text blocks which start with 'Description=string' and finish with 'CampaignServer/RightPointCampaignServer/MdapEngine/Services/CC-Corporate-Service]' and include...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.