XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Tom WallsSubject: Problem Viewing XML Page on my local server IIS
Author: Tom Walls
Date: 06 Feb 2006 08:12 AM
Hi,

Im new to xml technology and this is my first experience with the technology, Im developing an archive application in xml, where a number of files are stored in xml format. I have an xsl document that searchs through all my xml files and extracts all the files based on the given criteria in the xsl document.
The results appear successfully when opened through my local computer with Internet Explorer 6.0 Service pack 2, but I want to set up a main page in ASP for a user to be able to navigate to certian areas of the site. When I try to view the certian xml page (alldocs.xml) which is made from the xsl document (document.xsl) on the server i get the following error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The system cannot locate the object specified.

The two files are set up as:

alldocs.xml

<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="document.xsl" ?>
<groups>
<groupref href="45-1-1.xml"/>
<groupref href="45-1-10.xml"/>
<groupref href="45-1-100.xml"/>
<groupref href="45-1-101.xml"/>
<groupref href="45-1-102.xml"/>
<groupref href="45-1-103.xml"/>
<groupref href="45-1-104.xml"/>
<groupref href="45-1-105.xml"/>
<groupref href="45-1-106.xml"/>
<groupref href="45-1-107.xml"/>
<groupref href="45-1-108.xml"/>
<groupref href="45-1-109.xml"/>
<groupref href="45-1-11.xml"/>
<groupref href="45-1-110.xml"/>
</groups>

document.xsl

<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<groups>
<xsl:apply-templates select="//groupref"/>
</groups>
</xsl:template>

<xsl:template match="groupref">
<html>
<body>
<table>
<xsl:variable name="results" select="document(@href)//SEVERITY[.='CRIT']"/>
<xsl:choose>
<xsl:when test="$results != ''">
<tr><td>
<a href="{@href}"><xsl:value-of select="document(@href)/ProblemExport/ProblemData/Abstract"/></a>
</td></tr>
</xsl:when>
</xsl:choose>
</table>
</body>
</html>
</xsl:template>

</xsl:stylesheet>

Posttop
(Deleted User) Subject: Problem Viewing XML Page on my local server IIS
Author: (Deleted User)
Date: 06 Feb 2006 11:56 AM
Hi, Tom.

Can you give us a sample of the XML source you are using for your XSLT? Also, please let us know what version/build of Stylus Studio you are using.

David Foster
Stylus Studio Team

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.