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

RE: does java fully implement XSL processor?

Subject: RE: does java fully implement XSL processor?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 4 Mar 2004 23:18:05 -0000
expected meta to terminate element
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:  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

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.