Ask the Expert

IE error when XML file is pasted to Notes page

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.


This was first published in November 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: