|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Immediate help required (Perl and xsl)
> 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
|
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








