|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] using xalan extension lib - redirect
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








