Apply XSL to External XML

前端 未结 5 845
南旧
南旧 2020-12-28 08:54

Currently I use:


To link XSL to XML.

If my xml was here: www.externald

5条回答
  •  醉酒成梦
    2020-12-28 09:33

    You can create a local XML file that includes the XML content of the remote XML file through an entity reference.

    The example below will give you the content of the remote XML file inside of a wrapper document element.

    Then you can include a stylesheet processing instruction on your local XML file.

    However, since the local file has a wrapper document element, you might need to point to a "wrapper XSLT" that uses xsl:import to import the original XSL.xsl and apply-templates starting with the content inside the wrapper element.

    
    
    ]>
    
    
        &content;
    
    

提交回复
热议问题