Jump to content

XML/XSL Display ?


MyName
 Share

Recommended Posts

Hello

I was created XML file with help of _XMLDomWrapper.au3. now i want display the My XML file with help of XSL or CSS file how to display that

any one please help me

thanks

<Summary>
- <SN_1>
   <SName>t116C</SName> 
  <StartTime>12/16/2008 16:52:59</StartTime> 
  <T>11</> 
  <P>11</P> 
  <Te>Passed</Te> 
  <EndTime>12/16/2008 16:50:39</EndTime> 
  </SN_1>
- <SN_2>
  <SName>t116C</SName> 
  <StartTime>12/16/2008 16:52:59</StartTime> 
  <T>11</> 
  <P>11</P> 
  <Te>Passed</Te> 
  <EndTime>12/16/2008 16:53:24</EndTime> 
  </SN_2>
- </Summary>

-= [font="Verdana"]A Men Who believes in himself and not circumstances is the real Winner =-[/font]

Link to comment
Share on other sites

First things first... You should know after 36 posts on this board that you do not post in the Example Scripts for Help when there is a General Help & Support board. Second, do not duplicate this post there. A moderator will move it.

As to displaying XML, I don't know how that would be done with XSL or CSS. I have just recently gotten into manipulating XML data, but mine is held in a database. I hope someone else can help you, however you will get quicker responses in the right forum so bump this thread when it gets moved if you don't get an answer.

I hope this helps some,

Jarvis

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

This needs moved to support. Also you didn't specify a format / structure you want this to be displayed in.

Sample Format

<?xml version="1.0" encoding="ISO-8859-1"?>
<breakfast_menu>
    <food>
        <name>Belgian Waffles</name>
        <price>$5.95</price>
        <description>two of our famous Belgian Waffles with plenty of real maple syrup</description>
        <calories>650</calories>
    </food>
    <food>
        <name>Strawberry Belgian Waffles</name>
        <price>$7.95</price>
        <description>light Belgian waffles covered with strawberries and whipped cream</description>
        <calories>900</calories>
    </food>
    <food>
        <name>Berry-Berry Belgian Waffles</name>
        <price>$8.95</price>
        <description>light Belgian waffles covered with an assortment of fresh berries and whipped cream</description>
        <calories>900</calories>
    </food>
</breakfast_menu>

Sample XSL

<?xml version="1.0" encoding="ISO-8859-1"?>
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
  <body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
    <xsl:for-each select="breakfast_menu/food">
      <div style="background-color:teal;color:white;padding:4px">
        <span style="font-weight:bold"><xsl:value-of select="name"/></span>
        - <xsl:value-of select="price"/>
      </div>
      <div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
        <xsl:value-of select="description"/>
        <span style="font-style:italic">
          <xsl:value-of select="calories"/> (calories per serving)
        </span>
      </div>
    </xsl:for-each>
  </body>
</html>

I have two questions.

1. This Topic is not only with XML more then XSL/CSS File Support.

2. How to move this topic support ?

Thanks in advance

-= [font="Verdana"]A Men Who believes in himself and not circumstances is the real Winner =-[/font]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...