DOM Transform ?

sunker at telkom.net sunker at telkom.net
Mon Nov 1 09:03:07 GMT 1999


Hi, All

I've some problem with Dom
(xml-f.TransfrormNodeToObject('xsl-f.xsl',Response)), When i include the DTD
or schema the xsl file couldnot parse the xml & xsl to HTML format. but when
i redirect from xml, the xsl work done, such as :

xml-f.xml
================
<?xml version='1.0'?>
<!DOCTYPE [
<!ENTITY tst "Test it">
]>
<?xml-stylesheet type="text/xsl" href="xsl-f.xsl"?>
<test>
  <testing>hello</testing>
  <testing>Pale</testing>
    <testing>&tst;</testing>
</test>

xsl-f.xsl
================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns="http://www.w3.org/TR/REC-html40" result-ns="layout">
   <xsl:template match="/">
      <HTML>
         <HEAD>
            <TITLE>Test</TITLE>
         </HEAD>
         <BODY>
           <xsl:apply-templates select="//testing"/>
         </BODY>
      </HTML>
   </xsl:template>
   <xsl:template match="testing">
        <xsl:value-of/>
        <BR/>
   </xsl:template>
</xsl:stylesheet>

---------
Please Help me with the DOM, Parsing XML + XSL -----> HTML (pure, using
Jscript)...

thanks,
http://www.geocities.com/researchtriangle/campus/7211
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2640 bytes
Desc: not available
Url : http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19991101/876db664/winmail.bin


More information about the Xml-dev mailing list