Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

XSLT transform XML into HTML before it is displayed by a browser

Posted on 2016-11-01
5
36 Views
Last Modified: 2016-11-08
Hi,
I would like to display XML tags inside HTML view using XSL.
I found this information in the web.
http://www.htmlgoodies.com/beyond/css/displaying-xml-files-using-css.html
In the example “breakfast_menu”,  I don’t know how to indicate template match

Thanks for your comments,
Regards,
0
Comment
Question by:alcani
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:BigRat
ID: 41870010
What does your XML look like?
0
 
LVL 33

Expert Comment

by:ste5an
ID: 41871410
The link posted is about displaying XML documents instead of HTML pages. So you can use it with IFRAME's, but not as partial view.
0
 

Accepted Solution

by:
alcani earned 0 total points
ID: 41872614
Thnaks for your coments,

I found what I need.

Eg.
<xsl:value-of select="document('file.xml')//Node/@attribut"/>

Regards,
0
 
LVL 33

Expert Comment

by:ste5an
ID: 41872878
Instead of that, add a default transform to your XML document.
0
 

Author Closing Comment

by:alcani
ID: 41878484
look at my comments.
Regards
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question