> -----Original Message----- > From: Santiago Pericas-Geertsen [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 8:42 AM > To: [EMAIL PROTECTED] > > Robert, > > Thanks. But I still cannot reproduce you're error (the output is > slightly different from Xalan due to a known bug in xsl:strip-space, but > there are no problems with iterators).
Hmmm... when I did it I actually had the template/@name="restrict" in an xsl:include. I put it in the main XSL to send off to you. Could you stick it in an include and try it? > > Were you able to re-compile the sources? Yes, after doing a checkout I suggest doing a clean. > Incidentally, what JDK are you using? I am using j2sdk1.4.2 And: $ java org.apache.xalan.Version Xalan Java 2.5.2 $ java org.apache.xalan.xslt.EnvironmentCheck #---- BEGIN writeEnvironmentReport($Revision: 1.23 $): Useful stuff found: ---- version.DOM.draftlevel=2.0fd java.class.path=/cygdrive/c/test_xalan version.JAXP=1.1 or higher java.ext.dirs=c:\j2sdk1.4.2\jre\lib\ext #---- BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path ---- xalan.jar-path=c:\j2sdk1.4.2\jre\lib\endorsed\xalan.jar xercesImpl.jar-apparent.version=xercesImpl.jar from xerces-2_4 xercesImpl.jar-path=c:\j2sdk1.4.2\jre\lib\endorsed\xercesImpl.jar xml-apis.jar-apparent.version=xml-apis.jar present-unknown-version xml-apis.jar-path=c:\j2sdk1.4.2\jre\lib\endorsed\xml-apis.jar #----- END Listing XML-related jars in: foundclasses.sun.boot.class.path ----- version.xerces2=Xerces-J 2.4.0 version.xerces1=not-present version.xalan2_2=Xalan Java 2.5.2 version.xalan1=not-present version.ant=not-present java.version=1.4.2 version.DOM=2.0 version.crimson=present-unknown-version sun.boot.class.path=c:\j2sdk1.4.2\jre\lib\endorsed\xalan.jar;c:\j2sdk1.4.2\j re\lib\endorsed\xercesImpl.jar;c:\j2sdk1.4. \jre\lib\endorsed\xml-apis.jar;c:\j2sdk1.4.2\jre\lib\rt.jar;c:\j2sdk1.4.2\jr e\lib\i18n.jar;c:\j2sdk1.4.2\jre\lib\sunrsa ign.jar;c:\j2sdk1.4.2\jre\lib\jsse.jar;c:\j2sdk1.4.2\jre\lib\jce.jar;c:\j2sd k1.4.2\jre\lib\charsets.jar;c:\j2sdk1.4.2\j e\classes version.SAX=2.0 version.xalan2x=Xalan Java 2.5.2 #----- END writeEnvironmentReport: Useful properties found: ----- # YAHOO! Your environment seems to be OK. > > -- Santiago > > On Fri, 2003-10-24 at 11:01, Robert Koberg wrote: > > 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 > >
