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

Re: problem generating dynamic namespace declarations

Subject: Re: problem generating dynamic namespace declarations
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jul 2000 09:46:17 GMT
dynamic assign namespace xsl
   > I'm writing a stylesheet that generates XML Schema documents, which
   > requires a namespace declaration that I want to assign via 
   > stylesheet parameters.  
   > To generate a namespace declaration, output an element or 
   > attribute whose name is in that namespace; or output a literal result
   > when that namespace is in scope. If you do that, the namespace 
   > declaration will be produced automatically.
   Sorry, that was correct but not very helpful. If the namespace is known to
   you only as the value of a parameter, the way to output an element using
   that namespace is, for example:

   <xsl:element name="local" namespace="{$ns-param}">

   Mike Kay

But in this case as is the case if writing xpath valued attributes,
this isn't quite what you want to do, as you want to generate a
namespace declaration that isn't used in the element or attribute name.

(Actually I didn't think that you did need that for schemas, but you
certainly do for writing xpath expressions)


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.