[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

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

> Header file, that uses varibles (part of it):
> <xsl:stylesheet version="1.0" 
>         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>                 <table width="800" height="20" border="0" cellspacing="2" 
>                  cellpadding="2" bgcolor="white">
[snip]

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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.