[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: xsl:element will not create an output element, in
Subject: Re: xsl:element will not create an output element, in any context|
From: "N David Brown" <orieldave@xxxxxxxxxxxxxx>
Date: Thu, 31 May 2007 14:46:38 +0100
Thanks loads for all that info, guys; I appreciate it very much.
You can just put the example in the filesystem and open it in Firefox.
Atm I'm in a GNU Screen session via a reverse SSH tunnel, connected to
my home PC - my connection's being slow for some reason, so editing
remotely is slow; also, I should be doing some 'work' at work, lol. So
I'll get back to you guys later today once I've tested each of your
suggestions at home =)
> One last question for David, before I test things when back at home.
> What you've written below produces 'ul' and 'li' elements in no
> namespace, according to what you said earlier. I'm assuming this
> they will NOT be processed as XHTML elements, and hence will not
> produce the result I want (which is XHTML ul and li elements)?
For a browser it is more important that the DOCTYPE is correct. You
can set it in the <xsl:output /> instruction. However, it will not
effect the result when you use a doctype in an inlined stylesheet
(another difference from server side and client side rendering using
In addition of being conformant XHTML, the elements may not have a
prefix and must be in the XHTML namespace. The previous example
changed such a way that it produces conformant XHTML when run from a
commandline processor, may look like this (place it in your
filesystem and point your firefox browser to it):
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="embedded.xslt"?>
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
<html xml:lang="en" lang="en">
-- Abel Braaksma
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format