I can not view the XML in browser by xslt -
i using below mentioned codes in xml & xslt
xml:
   <?xml version="1.0" encoding="utf-8" standalone="no"?>    <?xml-stylesheet type="text/xsl" href="wiley.xsl"?>    <!doctype component public "-//jws//dtd wileyml 20110801 vers 3gv2.0//en" "wileyml3gv20-flat.dtd">    <component xmlns="http://www.wiley.com/namespaces/wiley" version="2.0" type="serialarticle" xml:lang="en" xml:id="ecog473">   xslt:
 <?xml version='1.0' encoding='utf-8' ?>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink">  <xsl:output method="html"/>  <xsl:template match="/">   but texts displaying without styles (as text), , has broken in end of document , display error message.
error in ie ,
cannot view xml input using xsl style sheet. please correct error , click refresh button, or try again later.
use of default namespace declaration attribute in dtd not supported.
however, can view text in browser; when using below.
in xml:
   <?xml version="1.0" encoding="utf-8" standalone="no"?>    <!--<!doctype component public "-//jws//dtd wileyml 20110801 vers 3gv2.0//en" "wileyml3gv20-flat.dtd">-->    <?xml-stylesheet type="text/xsl" href="wiley.xsl"?>    <component version="2.0" type="serialarticle" xml:lang="en" xml:id="ecog473">   deleted ns in component tag (xmlns="http://www.wiley.com/namespaces/wiley")
how can view contents (dtd declaration, ns)?
thanks.
you need declare namespace in stylesheet, assign prefix , use prefix when addressing elements of xml document (in portions of code haven't included in post).
Comments
Post a Comment