|
Subject: [xsl] RE: Ignoring Child Nodes using XPath From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Mon, 26 Mar 2001 10:47:15 -0800 (PST) |
Ciaran Byrne wrote:
> Sorry,
> I should have mentioned the fact that I'm not using the
> XPath Query in an XSL stylesheet but rather to select the
> node in MSXML i.e. dom.selectsinglenode("XPath Query").
>
> I know I could concat the element together by getting the element
> name and attributes but I thought there might have been a
> more efficient solution using an XPath Query.
You can't -- XPath doesn't change the nodes in any way, and you want
to change a node, bu stripping it of its children.
As Mike already pointed out, the solution is through a transformation,
and using XSLT to perform a transformation is much more natural than
using DOM methods.
Hope this helped.
Dimitre Novatchev.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] value-of formattting, Lors, Ben | Thread | [xsl] VB Recursion Code, Gollwitzer Brian Con |
| RE: [xsl] another href question, Turner, Althea | Date | RE: [xsl] value-of formattting, Lors, Ben |
| Month |