Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply XLST to XML file - no change to XML File allowed

Status
Not open for further replies.

jaksel

Technical User
Mar 21, 2011
1
US
I receive Source.XML from a supplier ... let;s assume it is write protected, read only. I want to apply an XLST and CSS to the file.

Normally, I'd do this:
In Source.xml:
<?xml-stylesheet type="text/xsl" href="myXLST.xsl" ?>

In myXLST.xsl I reference the style sheet...
<link href="Style.css" rel="stylesheet" type="text/css" />
The file myXLST.xls generates the HTML code I need and it displays fine.

I can make it work perfectly in this scenario. However, how do I accomplish this same thing (apply myXLST.xsl) to Source.xml when I am not allowed to modify Source.xml to include myXLST.xls reference???

Seems like all I would need to do is create a third XML file that pulls in myXLST.xls and Source.xml

Your ideas?
 
Actually, you just need to specify a different OUTPUT file in your XSL file. Not too sure how you'd do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top