Web page instances using xml and xsl

Source: Internet
Author: User
Tags xsl
Use xml and xsl for web pages. You can simply save two files and run them. Cdcatalog. xml is equivalent to htmlcdcatalog. xsl, which is equivalent to csd8catalog. xml [html] viewplaincopy & amp; lt ;? Xmlversion & amp; quot; 1.0 & amp; quot; encoding & amp; quot; ISO-8859-1 & amp; quot ;? & Amp; for reprint, please specify the source: using xml and xsl as web page instances

Use xml and xsl for web pages. You can simply save two files and run them.

Cdcatalog. xml is equivalent to html
Cdcatalog. xsl is equivalent to css



Cdcatalog. xml

[Html] view plaincopy

  
  
    
       
   Empire Burlesque     Bob Dylan     
   
    USA
        
   
    Columbia
        
   
    10.90
        
   
    1985
      
    
       
   Empire Burlesqu2e     Bob Dyla2n     
   
    USA2
        
   
    Columbia2
        
   
    10.91
        
   
    1983
      
   
       
   Empire Burlesqu2e     Bob Dyla2n     
   
    USA2
        
   
    Columbia2
        
   
    10.91
        
   
    1983
      
   
       
   Empire Burlesqu2e     Bob Dyla2n     
   
    USA2
        
   
    Columbia2
        
   
    10.91
        
   
    1983
      
   
       
   Empire Burlesqu2e     Bob Dyla2n     
   
    USA2
        
   
    Columbia2
        
   
    10.91
        
   
    1983
      
   
       
   Empire Burlesqu2e     Bob Dyla2n     
   
    USA2
        
   
    Columbia2
        
   
    10.91
        
   
    1983
      
   
 





Cdcatalog. xsl

[Html] view plaincopy

   
   
             My CD Collection     
        
   
   
 
Title Artist





Open cdcatalog. xml in the browser to see the effect. Most browsers and programming languages support this feature.

Effect: My CD Collection

Title Artist
Empire Burlesque Bob Dylan
Empire Burlesqu2e Bob Dyla2n
Empire Burlesqu2e Bob Dyla2n
Empire Burlesqu2e Bob Dyla2n
Empire Burlesqu2e Bob Dyla2n
Empire Burlesqu2e Bob Dyla2n

The above is the content of the web page instance using xml and xsl. For more information, see PHP Chinese network (www.php1.cn )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.