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

Immediate help required (Perl and xsl)

Subject: Immediate help required (Perl and xsl)
From: Srinivas Ch <sideburnch@xxxxxxxxx>
Date: Fri, 16 Aug 2002 01:18:09 -0700 (PDT)
perl and xsl
Hallo Everyone,
I required some help for programming in Perl and xsl. 
First in Perl:
I have a directory structure like this
c:\project\work_folder\current\xml\Reference.xml
I use File::Basename for getting the path and the file
name. I need to get only the name of the directory
"xml" that has Reference.xml (this is just an example,
I need to alway get the name of the directory that has
xml files, in this case its "xml" directory), so how
to do this.

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?

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

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">
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


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.