RE: [xsl] Parameter problem

Subject: RE: [xsl] Parameter problem
From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni@xxxxxxxxxx>
Date: Wed, 13 Mar 2002 11:58:09 -0800
xsl:value-of generates text values in the result tree.  If you want to copy
other types of nodes from source tree to the result tree, use xsl:copy or
xsl:copy-of.  For example (not tested):

   <p id="pInstructions"><xsl:copy-of select="//INTROMSG/node()"></p>

You might also want to reconsider using // to find the INTROMSG element, as
that could become a performance nightmare.  Think about using a key, or
embedding the absolute path to the node.


|         |           "Hellstern, Manny"        |
|         |           <manny.hellstern@mustangen|
|         | >                    |
|         |           Sent by:                  |
|         |           owner-xsl-list@xxxxxxxxxxx|
|         |                |
|         |                                     |
|         |                                     |
|         |           03/13/2002 11:42 AM       |
|         |           Please respond to xsl-list|
|         |                                     |
  |                                                                                                          |
  |        To:      "'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>                    |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                     |
  |        Subject: RE: [xsl] Parameter problem                                                              |

For simplification, I'm now trying this:

                         Please click on the <img id="imgAlert"
src="http://aaa/images/pic.gif"; />  in order to continue.

and in XSL I'm doing this:

<p id="pInstructions"><xsl:value-of select="//INTROMSG"></p>

but my result is still:

             Please click on the in order to continue.

however, if I change my XSL to:

             <p id="pInstructions">Please click on the <img id="imgAlert"
src="http://aaa/images/pic.gif"; />  in order to continue.</p>

it works.

What am I missing?
-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Wednesday, March 13, 2002 12:29 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Parameter problem

> In the application I'm trying to complete, I'm trying to introduce a
> "configurable" aspect to the application by giving the client control
> the XML file.

You can do that, but you have to put _data_  in the users file which the
processor can use to customise its behaviour, you can't put in snippets
of XSLT/XPath code, any more than you'd expect a program written in C
to be able to incorporate random bits of C source code embedded in a


This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread