LotusScript XML/XSL

I am creating an XML page via a LotusScript agent. The XML looks good and validates, but I can’t seem to get the XSL to be viewed by a browser (IE or FF).

FF is giving me this message: This XML file does not appear to have any style information associated with it. The document tree is shown below. When I save the file locally as XML and validate it in Dreamweaver it works great, so it seems like the code and the references are correct.

Basically this is a web app that runs a simple MSSQL Query then (should) formats the data on the screen for an external client to view.

What am I missing or is there a better way to do this via a 8.5. Hints, ideas? Anything is appreciated. TIA.

Print “Content-type: text/xml”

Print |<?xml version="1.0" encoding="ISO-8859-1"?>|

Print |<?xml_stylesheet Type="text/xsl" href="/gw/globals.nsf/gwxml2.xsl"?>|

Print ||

Print ||

Print ||

Print |Company: | & coNumber & | - Invoice: | & invNumber

Print ||

Print ||

Print | |

Print InvoiceNumber

Print | |

Print | |

Print InvoiceDate

Print | |

Print | |

Print Employee

Print | |

Print | |

Print Payee

Print | |

Print | |

Print Reference

Print | |

Print | |

Print Format(ExpenseAmount ,“Currency”)

Print | |

Print ||

Print ||

Print ||

Print |Invoice Total:|

Print ||

Print ||

Print | |&Format(Cstr( expTotal ),“Currency”)&||

Print ||

Print ||

Print ||

Print ||

Subject: Not sure how XSL should work here…

  • It looks like the XML consumer should be applying the style sheet, but I’m thinking the intent is to have that done automagically, in which case the consumer should never even see the style sheet, or care.- I’ve always done XSL with an explict transformation, in which case this XML should be piped into a transform, then the output of that passed along to the consumer.

Hope this makes sense…

Subject: hm…

I guess you have tried the full path to the stylesheet?

  • Thomas

http://www.notessidan.se

Subject: Full Path Didn’t Work Either

yes, have tried that as well, and it didn’t work. Same issue “no style found”.

<?xml_stylesheet Type="text/xsl" href="http://www.*****.com/style/xmlgw5.xsl"?>