RE: [xsl] does java fully implement XSL processor?

Subject: RE: [xsl] does java fully implement XSL processor?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 4 Mar 2004 23:18:05 -0000
This message pretty clearly indicates that one of the documents you are
trying to load is not well-formed XML. You seem to be ignoring what the
error message is telling you, and looking for causes elsewhere - why?

Michael Kay


# -----Original Message-----
# From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-
# list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of noel.king2@xxxxxxxxxxx
# Sent: 04 March 2004 19:08
# To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
# Subject: [xsl] does java fully implement XSL processor?
# 
# Hello,
# I am using xsl and java for XSL processing, I am currently using java sun
# 1.4.2 to transform a XML and XSL to XML.In the XSL I am using the
# document(uri)
# function to retrieve documents, this function works if the uri is in this
# folder, but since I need it to take a http uri, it throws me back this
# error
# 
# 
# 
# file:///C:/Projects/doctest.xsl; Line #6; Column #-1; C
# an not load requested doc: Expected "</META>" to terminate element
# starting
# on l
# ine 3.
# 
# I have testing this against Microsoft's compiler and it worked grand so
# I am left wondering whats the craic with java, this function worked if I
# replaced the http uri with say a file in my folder like 'web.xml'
# 
# Here is the XSL code
# 
# <?xml version="1.0" encoding="UTF-8"?>
# <xsl:stylesheet version="1.0"
# xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
# xmlns:fo="http://www.w3.org/1999/XSL/Format";>
# <xsl:template match="/xslviewjsp">
# <doctest>
# <info>
# <xsl:variable name="foo"
# select="document('http://localhost:8080/exist/xmldb/db/noel_collection/xsl
# view_web/web2.xml')"/>
# <xsl:variable name="doc1" select="document('web2.xml')"/>
# <xsl:variable name="doc2" select="document('web.xml')"/>
# <xsl:if test="$doc1/xslviewjsp/title/text() =
# $doc2/xslviewjsp/title/text()">
# <xsl:for-each select="document('web2.xml')/xslviewjsp/*">
# <xsl:element name="{name()}">
# <xsl:value-of select="."/>
# </xsl:element>
# </xsl:for-each>
# </xsl:if>
# </info>
# </doctest>
# </xsl:template>
# </xsl:stylesheet>
# 
# The class I am using to transform the xsl is java's standard class
# Transformer
# 
# Hope somebody can help me
# Thanks
# Noel
# 
# 
#  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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


Current Thread