http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2438 *** shadow/2438 Tue Jul 3 09:23:16 2001 --- shadow/2438.tmp.8770 Tue Jul 3 09:23:17 2001 *************** *** 0 **** --- 1,110 ---- + +============================================================================+ + | redirect appear not to create a file on solaris 2.7 | + +----------------------------------------------------------------------------+ + | Bug #: 2438 Product: XalanJ2 | + | Status: UNCONFIRMED Version: 2.1.0 | + | Resolution: Platform: Sun | + | Severity: Critical OS/Version: Solaris | + | Priority: Other Component: org.apache.xalan.extens | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + The following code segment work fine on my Windows NT, and works fine with + xalan_2.0.1, but does not work with xalan_2.1.0 on Solaris 2.7. + + <!--- + FootNote + --> + <xsl:template match="footnote"> + + <xsl:variable name="notenum"> + <xsl:number value="count( preceding::footnote ) +1" format="01"/> + </xsl:variable> + + <xsl:variable name="unique" select="concat( 'foot_', substring-before( + //document/@title , + ' ' ), $notenum, '.html') "/> + + <a href="{$unique}"> + <xsl:text>[footnote </xsl:text> + <xsl:number value="count( preceding::footnote ) +1"/> + <xsl:text>]</xsl:text> + </a> + + <redirect:write file="{$unique}"> + <xsl:fallback><br>Error while creating file.</br></xsl:fallback> + <xsl:call-template name="note_file"/> + </redirect:write> + + <xsl:value-of select="following-sibling::text()"/> + </xsl:template> <!-- FootNote --> + + <!-- + FootNote/Foot_Para: + the note portion + --> + <xsl:template match="footnote/foot_para"> + + <h1> + <xsl:text>Footnote </xsl:text> + <xsl:text>[</xsl:text> + <xsl:number value="count( preceding::footnote ) +1" format="01"/> + <xsl:text>] </xsl:text> + </h1> + + <blockquote> + <xsl:value-of select="text()"/> + </blockquote> + + </xsl:template> <!-- FootNote --> + + <!-- + note_file: generates a new HTML files to contain a + footnote or reference. + --> + <xsl:template name="note_file"> + + <html> + + <body bgcolor="white" text="black" background="book_green.jpg"> + <link rel="stylesheet" type="text/css" href="stylesheet/antero.css"/> + + <style Type="text/css"> + body{ + margin-left: 13%; + margin-right: 13%; + font-family: san-serif; + } + h1 { align: middle; + font-size: 110%; + } + h2 { align: middle; + font-size: 90%; + } + </style> + + <br/><br/><br/> + + <div class="box"> + + + <!-- Body Content --> + <xsl:apply-templates/> + </div> + + <br/><br/> + <br/><br/> + <br/> + <hr></hr> + <h2> + <xsl:text>To go back: press the ALT key and the left-arrow + key</xsl:text> + </h2> + </body> + </html> + + </xsl:template> <!-- Note_File: creates a footnote or reference files -->
