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

Re: aborting element creation

Subject: Re: aborting element creation
From: "M. David Peterson" <m.david.x2x2x@xxxxxxxxx>
Date: Fri, 11 Feb 2005 04:29:07 -0700
xml element creation
Scratch that... this appeared as a new, unanswered item in my inbox
when obviously it has already been dealt with...


On Fri, 11 Feb 2005 04:26:58 -0700, M. David Peterson
<m.david.x2x2x@xxxxxxxxx> wrote:
> dump the @
> 
> 
> On Thu, 10 Feb 2005 17:43:23 +0100, Joris Gillis <roac@xxxxxxxxxx> wrote:
> > Hi XSL guru's and experts,
> >
> > I was wondering...
> > Is there a way (in XSLT1.0 or 2.0) to prohibit an element to be
> > constructed and added to the result tree, while other XSL instruction
> > inside are being processed normally?
> >
> > In other words, how can I transform this XML:
> > <root>
> >         <node encapsulate="container"/>
> >         <node/>
> > </root>
> >
> > into this:
> >
> > <root>
> >         <container>
> >                 <node encapsulate="container"/>
> >         </container>
> >         <node/>
> > </root>
> >
> > without any decisive structure or pattern matching?
> >
> > the following template throws an error about the Qname (XSLT1.0):
> >
> > <xsl:template match="node">
> >         <xsl:element name="{@encapsulate}">
> >                 <xsl:copy-of select="."/>
> >         </xsl:element>
> > </xsl:template>
> >
> > Thanks in advance
> > --
> > Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
> > Vincit omnia simplicitas
> > Keep it simple
> >
> >
> 
> --
> <M:D/>
> 
> :: M. David Peterson ::
> XML & XML Transformations, C#, .NET, and Functional Languages Specialist
> 


-- 
<M:D/>

:: M. David Peterson ::
XML & XML Transformations, C#, .NET, and Functional Languages Specialist

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.