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

Re: namespace transform issue

Subject: Re: namespace transform issue
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Apr 2001 09:17:26 +0100
asp xsl namespace issue
My code looks like this
<?xml version="1.0" encoding="UTF-8"?>
<alex:stylesheet xmlns:xsl="http://www.alex.com"
xmlns:larry="http://www.w3.org/1999/XSL/Transform"  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 http://www.w3.org/1999/XSL/Transform. 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 http://alex.com is replaced with
> http://www.w3.org/1999/XSL/Transform.

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

> 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.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 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.