This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Ignoring Child Nodes using XPath
- To: ciaran dot byrne at 3tl dot com
- Subject: [xsl] RE: Ignoring Child Nodes using XPath
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Mon, 26 Mar 2001 10:47:15 -0800 (PST)
- Cc: xsl-list at lists dot mulberrytech dot com
- Reply-To: xsl-list at lists dot mulberrytech dot com
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