[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

BUG - xalan-j D7 - document()

Subject: BUG - xalan-j D7 - document()
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Sun, 29 Jul 2001 12:05:30 -0700
xalan document function bug
When returning a text/xml stream with a servlet to the document function
there is an error saying that the document must be well-formed. In testing
the servlet to see what it is returning I see the follwoing:
1. In IE5+ (mac and win) - servlet returns a text/xml file that is displayed
with IE's default XSL (tree)
2. In Nav4.7 (Linux) - servlet returns a text/xml that and the browser asks
if you want to save the text/xml file.  When you look at the saved file it
is a simple xml document, for example:
<article>
    <title>boo</title>
    <para>boo boo boo</para>
</article>
---------------------------------------
When I use the servlet's output in a client-side transformation with IE
(calling the servlet with an MS XML data island), it works as expected.
---------------------------------------
Here is the XSL I am using for xalan-j:
<xsl:variable
   name="content-holder"
   select="concat('http://', $http-server, $context,
'/ReturnPage?pageid=',$page-id)"/>

<xsl:apply-templates
   select="document($content-holder)/article"/>
-----------------------------------------------------
Am I doing something wrong? Is there a way to work around this? If someone
would like to test the servlet's result in their own setup I can open it up
and give you a url that will return a docbook xml document.

Thanks,
Rob


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.