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

Re: global xsl:variable problem, value not being set

Subject: Re: global xsl:variable problem, value not being set
From: ashok _ <listmanster@xxxxxxxxx>
Date: Mon, 7 Sep 2009 17:35:58 +0300
Re:  global xsl:variable problem
On Mon, Sep 7, 2009 at 1:22 PM, David Carlisle wrote:

> That generates a new element with the same local name, but in teh
> default namespace of the stylesheet (which is no namespace in your case)
> rather than the defaulr namespace of the source.  If you do not intent
> to change namespace, you can write
>
>      <xsl:template match="*">
>              <xsl:element name="{node-name(.)}">
>                      <xsl:for-each select="@*">
>                              <xsl:attribute name="{name(.)}">
>                                      <xsl:value-of select="."/>
>                              </xsl:attribute>
>                      </xsl:for-each>
>                      <xsl:apply-templates/>
>              </xsl:element>
>      </xsl:template>
>
> as
>
> <xsl:template match="*">
> <xsl:copy>
> <xsl:copy-of select="@*"/>
> <xsl:apply-templates/>
> </xsl:copy>
> </xsl:template>
>



Adam / David :

Thank you very much for your help and suggestions -- have been  able
to resolve the problem now.

Ashok

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.