A
alex.iskold
Hi, i am having the following problem:
A style sheet imports another stylesheet:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="common.template"/>
.....
</xsl:stylesheet>
I try to load this in JavaScript like this:
var doc = load( 'main.template" );
// Load using Mochikit, and i serialze the doc to string to verify
that it loads fine.
var xsltProcessor = new XSLTProcessor();
try {
xsltProcessor.importStylesheet( xsl );
} catch ( e ) {
alert( e );
}
throws exception with errror code: 0x80004005
If i remove import then all is fine.
Is there a way to make this work?
Thanks in advance.
Alex
A style sheet imports another stylesheet:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="common.template"/>
.....
</xsl:stylesheet>
I try to load this in JavaScript like this:
var doc = load( 'main.template" );
// Load using Mochikit, and i serialze the doc to string to verify
that it loads fine.
var xsltProcessor = new XSLTProcessor();
try {
xsltProcessor.importStylesheet( xsl );
} catch ( e ) {
alert( e );
}
throws exception with errror code: 0x80004005
If i remove import then all is fine.
Is there a way to make this work?
Thanks in advance.
Alex