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

RE: Namespaces

Subject: RE: Namespaces
From: "Ricardo Saraiva" <rss@xxxxxxxxxxxxxx>
Date: Tue, 11 Nov 2003 11:55:58 -0000
xsl namespaces
Thanks.

Best regards,

Ricardo Saraiva.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Jarkko.Moilanen@xxxxxx
Sent: terça-feira, 11 de Novembro de 2003 11:41
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; Ricardo Saraiva
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Namespaces

Lainaus Ricardo Saraiva <rss@xxxxxxxxxxxxxx>:


To get the ns from the result can be avoided, look below:

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:d="http://www.w3.org/2001/XMLSchema"
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:wn0="http://systinet.com/xsd/SchemaTypes/"
        exclude-result-prefixes="fo e d i wn0"> <<<<<<<<< here
 

              
    <xsl:template match="/">
    <html>
        <body>
                <xsl:apply-templates select="e:Envelope"/>
        </body>
    </html>
    </xsl:template>
 

              
    <xsl:template match="e:Envelope">
            <xsl:apply-templates select="e:Body"/>
    </xsl:template>
 

              
    <xsl:template match="e:Body">
             <xsl:element name="img">
                            <xsl:attribute name = "src">
                                    <xsl:value-of select =
"wn0:r/@href"/>
                            </xsl:attribute>
            </xsl:element>
    </xsl:template>
 

              
</xsl:stylesheet>



<!-- Hello,
<!-- 
<!-- I have the following xml file:
<!-- 
<!-- <e:Envelope xmlns:e="http://schemas.xmlsoap.org/soap/envelope/" 
<!--  			  xmlns:d="http://www.w3.org/2001/XMLSchema" 
<!--  
<!-- xmlns:i="http://www.w3.org/2001/XMLSchema-instance" 
<!--  
<!-- xmlns:wn0="http://systinet.com/xsd/SchemaTypes/">
<!--  	<e:Body>
<!--  		<wn0:string_Response
<!-- i:type="d:string">Hello</wn0:string_Response>
<!--  		<wn0:r href="C:/Documents and Settings/Ricardo
<!-- Saraiva/Desktop/doc.jpg"/>
<!--  	</e:Body>
<!--  </e:Envelope>
<!-- 
<!-- I want to diplay the image on html.
<!-- From the xsl I've created:
<!-- 
<!-- <xsl:stylesheet version="1.0"
<!--     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<!--     xmlns:fo="http://www.w3.org/1999/XSL/Format"
<!--     xmlns:e="http://schemas.xmlsoap.org/soap/envelope/" 
<!--     xmlns:d="http://www.w3.org/2001/XMLSchema" 
<!--     xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
<!--     xmlns:wn0="http://systinet.com/xsd/SchemaTypes/">
<!-- 
<!--     <xsl:template match="/">
<!--     <html>
<!--         <body>
<!--         	<xsl:apply-templates select="e:Envelope"/>
<!--         </body>
<!--     </html>
<!--     </xsl:template>
<!--     
<!--     <xsl:template match="e:Envelope">
<!--     	<xsl:apply-templates select="e:Body"/>
<!--     </xsl:template>
<!--     
<!--     <xsl:template match="e:Body">
<!-- 	     <xsl:element name="img">
<!--             		<xsl:attribute name = "src">
<!--             			<xsl:value-of select =
"wn0:r/@href"/>
<!--             		</xsl:attribute>
<!--             </xsl:element> 	   	
<!--     </xsl:template>
<!--     
<!-- </xsl:stylesheet>
<!-- 
<!-- 
<!-- I get the ouput with the namespaces on the html tag. 
<!-- <html xmlns:fo="http://www.w3.org/1999/XSL/Format"
<!-- xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
<!-- xmlns:d="http://www.w3.org/2001/XMLSchema"
<!-- xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
<!-- xmlns:wn0="http://systinet.com/xsd/SchemaTypes/">
<!-- <body>
<!-- 	<img src="C:/Documents and Settings/Ricardo
<!-- Saraiva/Desktop/doc.jpg">
<!-- </body>
<!-- </html>
<!-- 
<!-- Why? Is it correct? How can I get free of the namespaces?
<!-- 
<!-- Thanks in advance,
<!-- 
<!-- Ricardo Saraiva.
<!-- 
<!-- 
<!-- 
<!--  XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
<!-- 
<!-- 


***************************************************
* Jarkko Moilanen                                 *
* Project Manager, ITCM (www.itcm.org)            *
* Profound XML technology Expert                  *
* University of Tampere                           *
* Hypermedia Laboratory                           *
***************************************************

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





 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.