Home > Ask the Domino Experts > Questions & Answers > IE error when XML file is pasted to Notes page
Ask The Domino Expert: Questions & Answers
EMAIL THIS

IE error when XML file is pasted to Notes page

Dave Hatter EXPERT RESPONSE FROM: Dave Hatter

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site
>
QUESTION POSED BY: m.cecot@infordata.net on 06 November 2001

I have a simple XML file:

<?xml version='1.0'?>
<?xml-stylesheet type='text/xsl' href='xslOrder.xsl' ?>
<note>
<item name='TypeOrder'>
<text>2</text>
</item>
<item name='CodCustomer'>
<text>006580</text>
</item>
</note>

with an XSL file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="uri:xsl">
    <xsl:template match="/">
	<html>
	<body>
	<table border="1">
	<tr style="font-weight:bold">
          <td>Type Order</td>
          <td>Customer</td>
	</tr>
	<xsl:for-each select='note'>
	  <tr>
	    <xsl:apply-templates/>
	  </tr>
	</xsl:for-each>
	</table>
	</body>
	</html>
    </xsl:template>
    <xsl:template match='item'>
       <td><xsl:value-of select='text'/></td>
    </xsl:template>
</xsl:stylesheet>

I have files in the same directory, and it works fine, but if I copy the XML and XSL into a Notes pages, an error occurs in MS ie browser. WHY?


>

This is most likely due to the fact the paths stored in the XML files are no longer valid. Specifically, look at the href parameter of the style sheet. It uses a relative reference to point to the style sheet. This is no longer valid when you place the files in to a Notes document.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts