Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - RE: A very confused noob has a question. >Thread Next - RE: A very confused noob has a question. RE: A very confused noob has a question.To: NULL Date: 5/4/2006 2:51:00 PM Thanks! That really helped. It sure is deceptively simpler tahn I thought. I was going about it in a much more of a mangled way. I have another question. If I have this template in another context, justas an example. <xsl:template match="ordereditems"> <xsl:copy-of select="self::node()"/> </xsl:template> I get as I would think the node and all of it's little kiddies. However, there is now a namespace in the 'ordereditems' node that reads 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'. Where is this coming from? Is there a way t o turn it off or control it somehow? Thanks all, J In article <249935A8-6202-4AD3-9DEA-75EE9C4A9FD5@m...>, MukulGandhi@d... says... > Please try this > > <?xml version="1.0" encoding="UTF-8"?> > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <xsl:output method="xml" indent="yes" /> > > <xsl:template match="/orders"> > <orders> > <xsl:copy-of select="order[not(contains(ordereditems, 'stupid'))]" /> > </orders> > </xsl:template> > > </xsl:stylesheet> > > Regards, > Mukul > > "supranoob" wrote: > > > Hey all, > > First off, I must admit that this xsl stuff is really throwing me around > > in a loop. So far it is more than a tad over my head. I am pretty sure > > that what I am trying to do can be done, I just can't seem to find any > > straight (well, easy to grasp) info on it. > > > > I have xml like this; > > <orders> > > <order> > > <ordernumber>54321</ordernumber> > > <ordereditems> > > <ordereditem> > > <partnumber>smart part</partnumber> > > </ordereditem> > > <ordereditem> > > <partnumber>smart part</partnumber> > > </ordereditem> > > <ordereditem> > > <partnumber>stupid part</partnumber> > > </ordereditem> > > </ordereditems> > > </order> > > <order> > > <ordernumber>12345</ordernumber> > > <ordereditems> > > <ordereditem> > > <partnumber>smart part</partnumber> > > </ordereditem> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
