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

Xalan 1.2 / <xsl:namespace-alias> / XSLT as output

Subject: Xalan 1.2 / <xsl:namespace-alias> / XSLT as output
From: "Antony Scott" <antony.scott@xxxxxxxxxx>
Date: Mon, 25 Sep 2000 13:46:49 -0400 (EST)
xalan namespace alias
Has anyone been able to use XSLT to generate a stylesheet as output using
Xalan 1.2? I've been trying to run the example in Michael Kay's book, where

XSL:
<xsl:stylesheet version="1.0"
                      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                      xmlns:out="output.xsl">

<xsl:param name="variable-name">v</xsl:param>
<xsl:param name="default-value"/>
<xsl:output indent="yes"/>

<xsl:template match="/">
   <out:stylesheet version="1.0">
   <out:variable name="{$variable-name}">
      <xsl:value-of select="$default-value"/>
   </out:variable>
   </out:stylesheet>
</xsl:template>

<xsl:namespace-alias
               stylesheet-prefix="out"
               result-prefix="xsl"/>

</xsl:stylesheet>

(XML file is present but not used)

and I get as output:
<?xml version="1.0" encoding="UTF-8"?>
<out:stylesheet version="1.0"
xmlns:out="http://www.w3.org/1999/XSL/Transform">
    <out:variable name="v"/>
</out:stylesheet>

MSXML3 gives me:
<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="v"></xsl:variable>
</xsl:stylesheet>
which is closer to what I was expecting, thouhgh with a different encoding
attribute value.

I can't find this listed as a bug in Xalan - anyone have any ideas?


Antony

Antony Scott
RivCom
Tel: +44 (0)1934 835851
E-mail: antony.scott@xxxxxxxxxx
Internet: http://www.rivcom.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.