This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
using xalan extension lib - redirect
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] using xalan extension lib - redirect
- From: "Jih, Felix" <felix dot jih at attws dot com>
- Date: Fri, 27 Apr 2001 10:54:44 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
I have using various definitions for the file (relative and absolute) for
the 'Redirect' of 'Xalan-Java Extension', yet I cannot find the file
anywhere in my pc:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:redirect="apache.org.xalan.xslt.extension.Redirect"
extension-element-prefixes="redirect">
<xsl:output method="text" indent="no"/>
<xsl:variable name="centerFile"
select="'file:///c:/tmp/xml_xsl/enters.ini'"/>
<xsl:variable name="logoutFile" select="logout.ini"/>
<xsl:variable name="File1" select="'c:/tmp/xml_xsl/reason1.ini'"/>
<xsl:variable name="File2"
select="'file:///c:/tmp/xml_xsl/reason2.ini'"/>
<xsl:template match="/">
Start Writing
<xsl:apply-templates/>
Finish Writing!
</xsl:template>
<xsl:template match="/config/cfg_shared/center_sites">
<redirect:open file="file:///c:/tmp/xml_xsl/centers.tmp"/>
<redirect:write file="file:///c:/tmp/xml_xsl/centers.tmp">
<xsl:apply-templates/>
</redirect:write>
<redirect:close file="file:///c:/tmp/xml_xsl/centers.tmp"/>
</xsl:template>
<xsl:template match="/config/cfg_shared/reasonCodes">
<redirect:open select="{$logoutFile}"/>
<redirect:write select="{$logoutFile}">
<xsl:for-each select="logoutCodeRecord">
<xsl:value-of select="logoutCode"/>
<xsl:text> </xsl:text>
<xsl:value-of select="logoutDesc"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</redirect:write>
<redirect:close select="{$logoutFile}"/>
</xsl:template>
</xsl:stylesheet>
Thank you very much for your help.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list