Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

zvon example doubt

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.zvon.org/xxl/XSLTutorial/Output/example7_ch1.html
Stylesheet1 example.
why is <b></b> common for fname and surname in output?
Why did it not display surname in italics?
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since there is no match of surname as child of source (root).
 
Vasan
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shan,
in the example we are selecting the value. Instead of value-of when we use apply-templates it will come in <i>.
Hope iam clear.
regards
Vasan
 
Vidya Nayak
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it is value-of, then only content of element is used without further processing. If apply-template is used, processing is done as per template definition (i for surname in this case).
Cheers,
Vidya
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!