|
Subject: Re: [xsl] Custom node-set in a variable From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 17 Feb 2005 11:48:29 -0500 |
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>
<xsl:variable name="bypass-names-RTF">
<element1 />
<element2 />
...
</xsl:variable> <xsl:variable name="bypass-names"
select="document('')/*/xsl:variable[@name='bypass-names-RTF]/*"/>And what would be the good way to handle the exclusion, keeping in mind performance?
<xsl:variable name="bypass-names-RTF"> <element1 /> <element2 /> ... </xsl:variable>
<xsl:variable name="bypass-names-RTF"> <name>element1</name> <name>element2</name> <name>element3</name> ... </xsl:variable>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Custom node-set in a variable, Lyublinski, Leonid | Thread | Re: [xsl] Custom node-set in a vari, Lyublinski, Leonid |
| Re: [xsl] Javascript variable to XS, Camaleón | Date | Re: [xsl] Javascript variable to XS, Robert Koberg |
| Month |