Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl appears in html output >Thread Next - Re: xsl appears in html output Re: xsl appears in html outputTo: NULL Date: 7/3/2006 12:38:00 PM
I have discovered that the server that works has the following dll's that
are not on the server that doesn't work
msxml2.dll
msxml2a.dll
msxml2r.dll
msxml3.dll
msxml3a.dll
msxml3r.dll
I guess the problem relates to this. How do I install the above dll's. Is it
just a matter of placing a copy and registering them?
Anyway the XML is like this
<root>
<copylink href="http://website" class="dgrey">contact</copylink>
<copylink href="http://website" class="dgrey">disclaimer &
privacy</copylink>
</root>
and the xsl looks like
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="mode">OPEN</xsl:param>
<xsl:template match="/">
<div id="footer">
Copyright _copy; 2004 blah_spc_spcABN blah blah
_spc_spcCRICOS Provider No: blah
<br />
<xsl:apply-templates/>
</div><!-- e footer -->
</xsl:template>
<xsl:template match="copylink">
<xsl:if test="$mode='OPEN'">
<a>
<xsl:attribute name="href">
<xsl:value-of select='./@href' />
</xsl:attribute>
<xsl:attribute name="class">
<xsl:value-of select='./@class' />
</xsl:attribute>
<xsl:value-of select='.' />
</a>_spc|_spc
</xsl:if>
</xsl:template>
</xsl:stylesheet>
and it is called via the following vb code
Function std_footer(mode)
dim loadstd_footer_xml
dim loadstd_footer_xsl
dim std_footer_xml
dim std_footer_xsl
dim paramsNodes,paramnode,rootnode
set std_footer_xsl = server.CreateObject("Microsoft.XMLDOM")
set std_footer_xml=server.CreateObject("Microsoft.XMLDOM")
loadstd_footer_xml=std_footer_xml.load("D:\xml\std_footer.xml")
loadstd_footer_xsl=std_footer_xsl.load("D:\xml\xsl\std_footer.xsl")
if loadstd_footer_xsl and loadstd_footer_xml then
Set paramsNodes = std_footer_xsl.getelementsbytagname("xsl:param")
for each paramnode in paramsnodes
if paramnode.attributes(0).name="name" then
select case paramnode.attributes(0).text
case "mode"
paramnode.text=mode
end select
end if
next
std_footer=std_footer_xml.transformNode(std_footer_xsl)
std_footer=replace(std_footer,"_spc"," ")
std_footer=replace(std_footer,"_copy","©")
else
if not loadstd_footer_xml then
std_footer="error -- cant load xml"
else
std_footer="Error -- stylesheet can NOT be loaded ??"
end if
end if
end function
"Joe Fawcett" <joefawcett@n...> wrote in message
news:O$pwnfCnGHA.692@T......
> "Janette" <ning@c...> wrote in message
> news:OOnP5DBnGHA.4604@T......
>> Hi,
>>
>> Please excuse my ignorance. I have a web based application that uses a
>> combination of xml and xsl to produce standard headers and footers on
>> each webpage. I have the task of migrating this application to another
>> server. I have copied all the files that I know make up the website and
>> the header and footer stuff, but when I run the website on the new
>> server, the xsl appears in the html instead of the expected html.
>>
>> The application is running on Windows 2000 server service pack 2, with
>> IIS 5 on both the new and old server. I assumed that Win2000 supports xml
>> and xsl. Is this incorrect? Or do I need to install a parser such as
>> MSXML 4.0? Or is it possible that it is a configuration issue that I am
>> having.
>>
>> What confuses me, is I have another web application that uses the same
>> standard header and footer code which is also running on Win2000. The
>> only difference I can see is this other server has .NET framework
>> installed.
>>
>> Any assistance would be greatly appreciated.
>>
>> Regards
>> Janette
>>
> Sounds like different versions of msxml, one using an older syntax.
> You'll have to show an example of the offending XSLT and how you're doing
> the transformation.
>
> --
>
> Joe Fawcett - XML MVP
>
>
> http://joe.fawcett.name
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
