xsl-list
[Top] [All Lists]

RE: [xsl] Transforming xml with any namespace

2009-11-25 09:58:26

Ok, changed to XSLT 2.0, but still the same problem...

XSL:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="2.0">
<xsl:output method="text" />
<xsl:template match="/">
  <xsl:apply-templates/>
</xsl:template>
<xsl:template match="*:Type1">
   <xsl:value-of select="local-name(.)"/> <xsl:text
disable-output-escaping="yes">=</xsl:text> <xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>

OUTPUT:
    
    
        
            
                Type1=value1
                Type1=value2
               please dont print me
            
        
    
 
----------------------------------------
Date: Wed, 25 Nov 2009 14:25:11 +0000
From: lists(_at_)fgeorges(_dot_)org
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Transforming xml with any namespace

Anders Viklund wrote:



You can use the XPath 2.0 namespace wildcard:



--
Florent Georges
http://www.fgeorges..org/




























--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
--~--

                                          
_________________________________________________________________
Keep your friends updated—even when you’re not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--