DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    found XALAN limitation when including an XML file into another XML file

    Hi all,
    Feel stuck here.
    I've broken my XML file into 3 parts. (The header, content and footer).
    I assemble these XML files by putting the following statement in the beginning of the document main.xml

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="convertToXHTML.xsl"?>
    <!DOCTYPE cd_page [
    <!ENTITY header SYSTEM "header.xml">
    <!ENTITY content SYSTEM "content.xml">
    <!ENTITY footer SYSTEM "footer.xml">
    ]>

    and put &header; ,&footer; and &content; in main.xml file where ever I need these blocks inserted.

    This main.xml file is linked to an XSL file which outputs XHTML.
    When I open main.xml in internet explorer, it is perfectly converted to XHTML but it does not work on firefox.
    So for compatibility with all browsers, I want to do the conversion on the server side and send XHTML output to the browser.
    When I convert it on the server side using java servlets and XALAN API it seems XALAN doesn't support the assembly of the xml blocks in this way (i.e using <!ENTITY) .
    Are there any other methods/approaches of assembling XML blocks. I can test them with XALAN to see wether they are supported or not?
    Last edited by ss596; 04-04-2007 at 04:56 AM. Reason: changed the subject to be more specific

Similar Threads

  1. updating xml file from VB6
    By smithg22 in forum VB Classic
    Replies: 9
    Last Post: 04-12-2005, 06:23 PM
  2. Try XML Junction
    By Tim in forum xml.announcements
    Replies: 0
    Last Post: 10-11-2001, 04:00 PM
  3. File uploading / objFile.Write problem
    By Tomer Cagan in forum ASP.NET
    Replies: 1
    Last Post: 07-24-2001, 09:01 AM
  4. Problem Converting ADO Recordset to XML
    By CHRISTOS STAVRINOU in forum VB Classic
    Replies: 0
    Last Post: 11-16-2000, 04:58 PM
  5. XML Security
    By HSIN NING in forum XML
    Replies: 0
    Last Post: 08-21-2000, 12:17 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links