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

Re: Passing Parameters to an XSL stylesheet...

Subject: Re: Passing Parameters to an XSL stylesheet...
From: Paul Busse <paul.busse@xxxxxxxxxx>
Date: 29 May 2001 11:39:37 +0200
paul busse
Hello Dagmar,

I'm not answering through the list as I did not verify my solution.

First: what is the cost of making the file language.inc and xml file.
It seems to be structured data, from where I'm standing and that is far
away. Perhaps it is allready an XML file. I presume for the moment that
you would build a structure like

    <doc>
    <tag name='VARIABLE_COLUMN1'>titel kolom 1</tag>
    </doc>

If that is the case you should be able to read the XML file in variable.
something like
    <xsl:variable ...>
        <xsl:copy-of select="document( language.inc )">
    </xsl:variable>

When you want to translate you 'VARIABLE_COLUMN1' you should
could call a named template with two variables:

    <xsl:template name='aaa'>
        <xsl:param name='doc'/>
        <xsl:param naem= 'tag'/>

        xsl:value-of select="node-set($doc)/doc/tag[@name =$tag]"/>
    </xsl:template>

I do not have the time to verify this myself but something along these
lines should do the trick.

Note that you probably use extensions and they differ from parser to
parser.

I hope that
    1. I understood the problem correctly
    2. this helps

Kind regards


Paul




-- 
Paul Bussé                    Ubizen
Senior Systems Engineer       We Secure e-Business
Phone   +32 16 28 70 00       http://www.ubizen.com
Fax     +32 16 28 71 00       http://www.securitywatch.com


 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.