dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Someone please help with xml / xsl

Hybrid View

  1. #1
    Join Date
    Nov 2012
    Posts
    1

    Someone please help with xml / xsl

    Hi,

    Could someone please help me? Basically I need to create an xsl document to output my person
    list in a table format, using xsl:for-each and outputting a "yes" or "no" for an "Employed" column

    I have this xml file:


    <?xml version="1.0"?>
    <?xml-stylesheet href="employeelist.xsl" type="text/xsl"?>
    <!DOCTYPE Persons>
    <Persons>
    <Person Type="IsEmployed">
    <First>Maria</First>
    <Last>Dante</Last>
    <Phone>1-800-123-000</Phone>
    <Profession>Doctor</Profession>
    </Person>
    <Person>
    <First>Toby</First>
    <Last>Morris</Last>
    <Phone>1-800-000-000</Phone>
    <Profession>Lawyer</Profession>
    </Person>
    </Persons>

    Thank you in advance!

  2. #2
    Join Date
    Nov 2012
    Posts
    15
    Try using WP, it will do that for you automatically.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles