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

Re: logic for remove namespace

Subject: Re: logic for remove namespace
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Sep 2016 15:40:48 -0000
Re:  logic for remove namespace
It's often best to have a pipeline of transformations, each doing one job.
This might not give the best performance, but it keeps your code simple,
modular, easy to debug, and highly reusable.

Michael Kay
Saxonica

> On 5 Sep 2016, at 12:49, Rahul Singh rahulsinghindia15@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> I am using below code to remove namespace, but i want to add this XSL in my
main XSL for related output fetch. Can this possible to add in same page means
main logic to extract something as well remove namespave logic:
>
>
> <xsl:template match="name">
>         <xsl:element name="lname">
>                     <xsl:value-of select="/lname"/>
>         </xsl:element>
>     </xsl:template>
>
>     <xsl:template match="*">
>         <xsl:element name="{local-name()}">
>             <xsl:for-each select="@*">
>                 <xsl:attribute name="{local-name()}">
>                     <xsl:value-of select="."/>
>                 </xsl:attribute>
>             </xsl:for-each>
>             <xsl:apply-templates/>
>         </xsl:element>
>     </xsl:template>
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <-list/293509> (by email <>)

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.