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

namespaces and extensions and multiple files

Subject: namespaces and extensions and multiple files
From: Sebastian Rahtz <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jul 2000 10:06:33 +0100 (BST)
c namespace multiple files
I want my XSL file to handle all the variants of the "multiple output
file" scenario; to avoid a load of namespace declarations at the
front, I thought I'd be clever and use the "xmlns" attribute on the
extension element itself, thusly:

 <xsl:when test="contains($processor,'Clark')">
  <document xmlns="http://www.jclark.com/xt" href="{$filename}">
   <xsl:call-template name="writestone"/>
  </document>
 </xsl:when>

 <xsl:when test="contains($processor,'SAXON')">
  <output xmlns="http://icl.com/saxon" file="{$filename}">
   <xsl:call-template name="writestone"/>
  </output>
 </xsl:when>

 <xsl:when test="contains($processor,'Apache')">
  <write xmlns="org.apache.xalan.xslt.extensions.Redirect" file="{$filename}">
   <xsl:call-template name="writestone"/>
  </write>
 </xsl:when>

 <xsl:when test="contains($processor,'Oracle')">
  <output use="oout"  xmlns="http://www.oracle.com/XSL/Transform/java" href="{$filename}">
   <xsl:call-template name="writestone"/>
  </output>

XT accepts this, and does what I expect. The other three don't. Would
anyone care to express a view on whether this *should* work?

Sebastian Rahtz


 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.