Re: [xsl] namespace transform issue

Subject: Re: [xsl] namespace transform issue
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Apr 2001 09:17:26 +0100
My code looks like this
<?xml version="1.0" encoding="UTF-8"?>
<alex:stylesheet xmlns:xsl="";
xmlns:larry="";  version="1.0">
<alex:namespace-alias stylesheet-prefix="alex" result-prefix="xsl"/>

you have that backwards! You are writing an xsl stylesheet, and you are
using alex: as the prefix for XSL instructions so you need to make alex
the namespace Otherwise the XSL
processor won't see <alex:stylesheet as the start of the stylesheet but
as a literal result element. 
Having a literal result element at th etop is legal in the simplified
syntax, so long as you have an xsl:version attribute, 

> Xalan refuses to transform unless is replaced with

Well without that, it can't know that you intended this to be a

> I thought this URL had nothing to do with transforming,
On the contrary, it has everything to with transforming.
Elements in that namespace are XSLT instructions for making
transformations, elements in any other namespace are just
copied to the output.


This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit

 XSL-List info and archive:

Current Thread