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

RE: Transforming xml with any namespace

Subject: RE: Transforming xml with any namespace
From: Anders Viklund <viklund_anders@xxxxxxxxxxx>
Date: Wed, 25 Nov 2009 14:57:57 +0000
RE:  Transforming xml with any namespace
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@xxxxxxxxxxxx
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Transforming xml with any namespace
>
> Anders Viklund wrote:
>
>>
>
> You can use the XPath 2.0 namespace wildcard:
>
>
>
> --
> Florent Georges
> http://www.fgeorges..org/
>

_________________________________________________________________
Keep your friends updatedeven when youre not signed in.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soci
al-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010

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.