[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Can't get expath-file functions to work in Saxon 9
That does work for expath file functions, but I can't get the zip
functions to work. I wonder if anyone can suggest what I'm doing wrong
here. You have to pass a <zip:file> element to the expath-zip:zip:file()
function, and the simplest way I can see to do that is to create the
zip:file element inside a variable and then pass the variable to the
function:
<xsl:variable name="zipFile"> <zip:file href="{$outputFilePath}"> <zip:dir name="META-INF"> <zip:entry name="manifest.xml" src="{concat($tempDir, '/META-INF/manifest.xml')}" method="xml"/> </zip:dir> </zip:file> </xsl:variable> <xsl:sequence select="zip:zip-file($zipFile/zip:file)"/> I've also tried with <xsl:sequence select="zip:zip-file($zipFile)"/> I've tried using both "zip" and "expath-zip" as the namespace prefix; in all cases I get this error: Cannot find a matching 1-argument function named {http://expath.org/ns/zip}zip-file(). I know this isn't yet intended to be stable, but I would have thought the function would be accessible even if it fails somehow. cheers, Martin On 14-02-23 01:48 PM, Graydon wrote: On Sun, Feb 23, 2014 at 01:37:00PM -0800, Martin Holmes scripsit:Hi there,[snip]
|
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
|