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

namespace transform issue

Subject: namespace transform issue
From: "Alex Reuter" <areuter@xxxxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2001 17:43:46 -0400
alex.com
Hello List,
I had some trouble with this a little while ago, and thought I had figured
it out.

I'm transforming an XML into and XSL with another XSL, and using namespaces
to ensure that XSL processing instructions are not interpreted as such by in
the original transformation.

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"/>

And then on to do all the work.

The problem I'm having is that in my resulting XSL,
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.alex.com">

Xalan refuses to transform unless http://alex.com is replaced with
http://www.w3.org/1999/XSL/Transform.

I get the following error:
XSL Warning: xsl:stylesheet requires a 'version' attribute!, Location
file:C:/transform.xsl, line 2, offset 63

and the transformed output simply copies the code from the XSL to the
resulting html file.

Pretty strange.

If I switch http://alex.com with http://www.w3.org/1999/XSL/Transform,
everything works perfectly.

I thought this URL had nothing to do with transforming, but was a
placeholder for unique names?  Is this xalan specific?

Thanks in advance!
Alex


 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.