Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

XSLT using a key  RSS feed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So i am having an issue with this key code. I have a loop and it should print the information for the employee element from every department and it will be placed in the corresponding department. I have the everything printing except for all the information about the employee from each department. My xsl code is :

And my xml code you can see here https://codeshare.io/aJ8Q1q .
What am i doing wrong here?
 
zach pass
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unsure why the post didnt post the correct code here it is

 
zach pass
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK nevermind. My xsl code is here https://codeshare.io/G6wx9k and my xml code is here https://codeshare.io/aJ8Q1q
 
Ranch Hand
Posts: 721
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Line #59 in the xsl (line # according to the codeshare listing) should be read like this:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!