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 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
satish kumarSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: satish kumar
Date: 01 Jul 2013 10:53 AM
Originally Posted: 01 Jul 2013 10:52 AM
Hi,
i am trying to run the valid XML file using XSL code in stylus studio 2006 version. but i am getting the error like "output document cannot be parsed as XML, there are more end tags than the start tags". but XSL is properly indented and not showing any output.

can anyone guide me what will be the problem.

Thanks.

Postnext
Ivan PedruzziSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: Ivan Pedruzzi
Date: 01 Jul 2013 12:32 PM

Post your XSLT and a sample of the XML input as attachment, if you want us to help


Ivan Pedruzzi
Stylus Studio Team

Postnext
satish kumarSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: satish kumar
Date: 01 Jul 2013 02:39 PM
Originally Posted: 01 Jul 2013 02:34 PM
Hi Ivan,

here is the code similar to that i am using... i am giving here the exact headers which i am using for XSLT and XML.

sample XSLT
-----------

<?xml version="1.0"?>
<xsl:stylesheet exclude-result-prefixes="xsl" version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<library>
<xsl:value of select="bookslist/books1/book"/>
</library>
</xsl:template>
</xsl:stylesheet>

sample XML:
-----------

<?xml version="1.0"?>
<bookslist>
<books1>
<book>textbook1</book>
</books1>
<books2>
<book>textbook2</book>
</books2>
<books3>
<book>textbook3</book>
</books3>
<books4>
<book>textbook4</book>
</books4>
</bookslist>


so Please look into this and guide me.

Thanks in advance. :)

Sateesh B

Postnext
Ivan PedruzziSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: Ivan Pedruzzi
Date: 02 Jul 2013 09:16 AM

You have a typo in value-of, expect that, it works as expected

<xsl:value-of select="bookslist/books1/book"/>


Ivan Pedruzzi
Stylus Studio Team

Postnext
satish kumarSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: satish kumar
Date: 02 Jul 2013 09:30 AM
Originally Posted: 02 Jul 2013 09:31 AM
but not working. giving the mentioned error.
can you guide me in which cases we will get that type of error?

Thanks,
Sateesh

Postnext
Ivan PedruzziSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: Ivan Pedruzzi
Date: 02 Jul 2013 09:47 AM

Please post a screenshot of Stylus Studio when the error occurs, like the following


Ivan Pedruzzi
Stylus Studio Team

Postnext
Ivan PedruzziSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: Ivan Pedruzzi
Date: 02 Jul 2013 09:47 AM

Please post a screenshot of Stylus Studio when the error occurs, like the following


Ivan Pedruzzi
Stylus Studio Team

Postnext
satish kumarSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: satish kumar
Date: 02 Jul 2013 12:16 PM
here it is..


Unknownscr.docx

Postnext
Ivan PedruzziSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: Ivan Pedruzzi
Date: 02 Jul 2013 09:23 PM

What happens if you click on the text view, see blue arrow in the screenshot attached.

Also can you take a larger screenshot with the all XSLT source visible after the execution?

Please zip your attachment unless you are posting common file formats like .png or .jpg, other file types get blocked by the spam filter



Ivan Pedruzzi
Stylus Studio Team

Posttop
satish kumarSubject: output document cannot be parsed as xml, there are more end tags than the start tags
Author: satish kumar
Date: 03 Jul 2013 06:01 AM
Originally Posted: 03 Jul 2013 05:36 AM
Hello Ivan,
When i am going to click on Preview text, nothing is visible, i mean it is showing only plain window.

so please tell me what could be the problem.

Thanks.

Sateesh

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.