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

Re: Accessing the XML declaration, the namespace-uri() funct

Subject: Re: Accessing the XML declaration, the namespace-uri() function
From: Miloslav Nic <nicmila@xxxxxxxx>
Date: Fri, 05 Nov 1999 06:39:15 +0100
accessing namespace xsl
XT will do it automatically, if you use 
<xsl:output method='xml'/> (you can forbid this behavior)

Look at 
http://zvon.vscht.cz/HTMLonly/XSLTutorial/Examples/Example85/exampleInOne.html

Dylan Walsh wrote:
> 
> Is it possible to somehow access the attributes of the <?xml
> version="1.0"?> tag? I'm trying to create a stylesheet that will
> generate a HTML view of any XML code, and I'd like it to begin with the
> <?xml version="1.0"?> tag. So I was planning to write out something
> like:
> &lt;?xml
> then insert the attribute names & their values then close the tag:
> ?&gt;
> 
> I've gotten this approach working for other processing instructions, but
> is it possible with the XML declaration, and if so, how? Are they
> attributes of the root node, or does "The XML declaration is not visible
> to the XSL processor" mean it is truly impossible?
> 
> Would it be safe to assume that the declaration is always <?xml
> version="1.0"?> and hard code it, i.e.:
> &lt;?xml version="1.0"?&gt; ?
> 
> Also, does the namespace-uri() function work in XT? The XT webpage says
> that namespace *axes* aren't supported, but what about the function? I
> can't get it to produce anything (using <xsl:value-of
> select="namespace-uri()> ).
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

-- 
***************************************************************
Dr. Miloslav Nic                        e-mail: nicmila@xxxxxxxx
Department of Organic Chemistry         TEL: +420 2 2435 5012  
ICT Prague (VSCHT Praha)                     +420 2 2435 4118
    				        FAX: +420 2 2435 4288  
****************************************************************
Support free information exchange: http://zvon.vscht.cz
****************************************************************


 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.