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

Custom node-set in a variable

Subject: Custom node-set in a variable
From: "Lyublinski, Leonid" <Leonid.Lyublinski@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Feb 2005 09:42:25 -0500
xsl variable node set
I have a simple template which copies entire XML tree doing some
attribute transformations.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="*|@*|comment()|processing-instruction()">
      <xsl:copy>
         <xsl:apply-templates select="node()|@*" />
      </xsl:copy>
   </xsl:template>

   <xsl:template match="*/text()">
<!-- TRANSFORMATIONS -->
   </xsl:template>
</xsl:stylesheet>

Now I need to exclude certain xml elements from the transformations by
name.
The list of such elements is long.
Can I use a variable inside my XSL as a custom node-set, something like:
   <xsl:variable name="bypass-names">
      <element1 />
      <element2 />
...
   </xsl:variable>

And what would be the good way to handle the exclusion, keeping in mind
performance?
Please advice
Thanks

-----------------------------------------------------------------------------
-
CONFIDENTIALITY  NOTICE:   This message is  intended only for the use of
the  individual or  entity to  which it is  addressed  and  may  contain
information  that is privileged,  confidential or exempt from disclosure
by law.  If the reader of this message is not the intended recipient, or
the  employee  or agent responsible  for delivering  the message  to the
intended  recipient,  you  are  hereby  notified that  you are  strictly
prohibited  from   printing,  storing,  disseminating,  distributing  or
copying  this message.   If you have  received  this message  in  error,
please notify us immediately  by replying to the message and deleting it
from your computer.   Neither this information block,  the typed name of
the sender,  nor anything else in this message is intended to constitute
an electronic signature,  unless a specific statement to the contrary is
included in this message.  Thank you, Antares Management Solutions.
=============================================================================
=

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.