Re: [xsl] xsl:value-of not allowed inside a stylesheet

Subject: Re: [xsl] xsl:value-of not allowed inside a stylesheet
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Fri, 17 May 2002 11:35:10 +0100
Hi Jarkko,

> Header file, that uses varibles (part of it):
> <xsl:stylesheet version="1.0" 
>         xmlns:xsl="";>
>                 <table width="800" height="20" border="0" cellspacing="2" 
>                  cellpadding="2" bgcolor="white">

The problem is that you haven't got a template in this stylesheet.
You've just got a table element with various other elements inside it,
including XSLT instructions. Your processor *should* give you an error
when it encounters the table element, since you're not allowed to have
elements that aren't in a namespace at the top level of the stylesheet
-- perhaps it's being generous.

Probably you should have the entirety of the content of this
stylesheet wrapped inside a template that matches the root node.



Jeni Tennison

 XSL-List info and archive:

Current Thread