[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

using xalan extension lib - redirect

Subject: using xalan extension lib - redirect
From: "Jih, Felix" <felix.jih@xxxxxxxxx>
Date: Fri, 27 Apr 2001 10:54:44 -0700
extension lib
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.