This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Ignoring Child Nodes using XPath


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]