Subject: Re: XML from JSP
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 15 Nov 2002 17:26:31 -0700 (MST)
|
Sara Mitchell wrote:
> To make it well-formed, you need to have the
> JSP directive inside a CDATA marked section
> like this:
>
> <![CDATA[<%
> String block = "work";
> %>]]>
I forgot to mention - since he's using the document function to access this
thing, it should still fail, because the document function is required to
parse an XML document (i.e., well-formed, with a single document element) not
a general entity (having some text and possibly multiple elements at the top
level).
So he will have to follow your advice but create a separate wrapper, like:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE doc [ <!ENTITY jsptext SYSTEM "text.jsp"> ]>
<doc>&jsptext;</doc>
and then access it via document('wrapper.xml')/doc
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- XML from JSP
- Gavin Myers - Fri, 15 Nov 2002 15:26:03 -0500 (EST)
- <Possible follow-ups>
- sara . mitchell - Fri, 15 Nov 2002 16:23:02 -0500 (EST)
- Mike Brown - Fri, 15 Nov 2002 19:11:00 -0500 (EST)
- Mike Brown - Fri, 15 Nov 2002 19:21:52 -0500 (EST) <=
|
|