Here you go:
<?xml version="1.0" encoding="UTF-8"?>
<t:folder id="abc" xmlns:t="tttt">
<t:folder id="restrict">
<t:folder id="under_restrict"/>
</t:folder>
</t:folder>
--o--
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:t="tttt"
exclude-result-prefixes="t">
<xsl:output method="html" encoding="utf-8" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<html>
<head>
<title>XSLTC ns_prefix:wildcard bug</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="t:folder">
<xsl:call-template name="restrict"/>
<xsl:apply-templates/>
</xsl:template>
<xsl:variable name="site_restrict_idref" select="'restrict'"/>
<xsl:template name="restrict">
<xsl:choose>
<xsl:when test="ancestor-or-self::t:[EMAIL PROTECTED]">
<xsl:text>folder id: </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>restriced id: </xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="@id"/>
<br/>
</xsl:template>
</xsl:stylesheet>
> -----Original Message-----
> From: Santiago Pericas-Geertsen [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 24, 2003 7:57 AM
> To: [EMAIL PROTECTED]
>
> On Fri, 2003-10-24 at 10:31, Robert Koberg wrote:
> > >
> > > After I sent the message, I tried compiling and running the
> stylesheet
> > > but was unable to reproduce the problem.
> >
> > Was there a fix put in or are you saying it was never a bug?
>
> Neither :-) Do you have a simple xsl/xml pair that we can try?
>
> > Also, I just updated my distribution and tried to build the source, but
> it
> > fails because java_cup is not declared (line 128) in:
> > java\src\org\apache\xalan\xsltc\util\JavaCupRedirect.java
>
> Hmmm, 'java_cup' is a package name. You may want to double check
> (perhaps remove and update again) the jar bin/java_cup.jar
>
> -- Santiago