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

RE: Immediate help required (Perl and xsl)

Subject: RE: Immediate help required (Perl and xsl)
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Fri, 16 Aug 2002 09:29:21 +0100
perl concatinate
> Second in Perl and xsl:
> 1. I need to send a parameter from Perl script to xsl.
> This parameter is directory structure. How to do this?

depends on what you are using to transform the XSLT, what perl library ?

and certainly there will be documentation on using parameters >?

 
> 2. How do I access this parameter in my xsl file?
> Can someone give an example for this.

you use <xsl:param/>

> 
> Third in xsl:
> I'm generating a XML document from a xsl stylesheet. I
> have a variable like this:
> <xsl:variable name="doctype_string"
> select="concat('//DTDs V',$version,' //EN//')"/>
> So I concatinate this. Now I need to print this in the
> header of xml document using doctype-public attribute,
> thats like this:
> <xt:document href="{file}" type="xml"
> doctype-public="$doctype_string">


have you just done a simple test using 
<xsl:value-of select="$doctype_string"/>
to see if your variable is returning anything ?
and the correct syntaxt would be using the curly
brackets e.g. {$doctype_string} will return var in 
an attribute.

gl, jim fuller


> When I do this, I have $doctype_string printed in the
> header. So what is a method to print the concatinated
> string "doctype_string" in the doctype header.
> I have tried out doctype-public="{$doctype_string}"
> too but this is printed in the header
> {$doctype_string}
> 
> Thanks in advance
> Regards,
> Sri...
> 
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 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.