Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: A very confused noob has a question.

From: supranoob <not@----.--->
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>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent