Why not just create a template?

<xsl:template match="//test" />

I think that would stop it from printing without having to mix XPathScript
into your stylesheet if you aren't already using it.

-- Ryan

----- Original Message -----
From: "Yanick" <[EMAIL PROTECTED]>
To: "Pavel Penchev" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 11:37 AM
Subject: Re: apply_templates()


> On Fri, Apr 19, 2002 at 08:55:22PM +0300, Pavel Penchev wrote:
> > Hi,
> >
> > I have a question that is may be quite dumb but I'll be very thankfull
if someone can help. The question is how can I stop from printing the tags
in the .xml file that do not have a corresponding .xsl/.xps matching rule.
As an example:
> >
> > <?xml version="1.0"?>
> > <page>
> >     <test>test</test>
> > </page>
> >
> > So when I do apply_templates('/page') the tag <test> and its content not
to be printed?
>
> $t->{test}{testcode} = sub{ return 0; };
>
> (ref: http://www.axkit.org/docs/xpathscript/guide.dkb?section=8 )
>
>
> Joy,
> `/anick
>
> --
>                     $_ = 'eatYerno Plteh khaer. cr';
>                            $S++ ; $oS = ++$S ;
> eval 's~'. ( '('. '.'x$S++ .')' ) x $oS . '~$' . $oS-- .'$'. $oS++ .'~g'
>                 until $S > int sqrt length and print;
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to