[xslt] Windows URI escaping



Hello all,
I have created an application to generate photo-albums. I use libxml/libxslt to generate the xml and then using various xsls that I have written, I convert the xml into htmls. The xsl translate the path separator into %5C. This is ok to view in my pc, but when I transfer to the web, the album doesnt work. Can anyone please point to me how I can get over this or correct this? Just for completeness, I herewith paste snippet of the xml, xsl and the c code.
 
xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ImgPath>images\us004.jpg</ImgPath>
 
xsl:
<img src="" name="slideshow"/>
 
generated html:
<img src="" name="slideshow">
 
c code:
XSSheet =  xsltParseStylesheetFile((const xmlChar *) ImgXSLPath.c_str()); //current style sheet
ResXMLDoc = xsltApplyStylesheet(XSSheet, XMLdoc, xslparams); //3rd = parameters 
xsltSaveResultToFilename(HTMLIMGFNAME, ResXMLDoc, XSSheet, 9);
 
I browsed through the website and found that there was a discussion dated Feb 18th. I downloaded the libxml windows binary today (17/May).
 
 
I have a second question as well. During the conversion, libxslt generate the meta tag.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
Is it possible to stop this? In one of the stylesheets, I am using a page transition effect,
 <meta http-equiv="Page-Enter" content="revealtrans(duration=2,transition=23)"/>
 
This does not work when the previous meta tag is present.
 
 
Thanks in advance for all of your assistance,
Joseph
 
P.S.: As some gurus could have guessed, I am little new to these technologies.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]