XML Document not registering XSL stylesheet?

后端 未结 1 1355
慢半拍i
慢半拍i 2021-01-27 23:56

I\'ve been trying to test-link my XML document with my XSL stylesheet, however it all it does is display the XML doc\'s information and ignores my templates, and I have no clue

1条回答
  •  囚心锁ツ
    2021-01-28 00:22

    Your xml file has a default namespace.
    You need to declare this namespace in the xsl file and use it.

    
    


    
    

    Also you have a typo: ref instead of rel.

    
    

    After modifying the xsl file should look like this:

    
    
    
        
    
            
            
            
                
            
            
    
        
    
        
    
            

    Movies

    Other files remain unchanged.

    0 讨论(0)
提交回复
热议问题