[jdom-interest] General XSL Question

T.B. Pogie pogietb at netscape.net
Tue Jun 11 03:55:13 PDT 2002


No, you shouldn't need markup tags. You might try <xsl:output method="text"/>.


"Nott, Matthias" <mnott at vignette.com> wrote:

>Y'all, 
>
>I'm trying a relatively simple thing. An XML Document is
>transformed using an XSL Sheet which begins
>
><?xml version = "1.0"?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
><xsl:template match="/">
><xsl:apply-templates/>
></xsl:template>
>
>and then carries on with normal transformation. All the 
>transformations work, yet I get the exception
>
>Ill-formed XML document (multiple root elements detected)
>
>When instead I use
><?xml version = "1.0"?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
><xsl:template match="/">
><html>
><xsl:apply-templates/>
></html>
></xsl:template>
>
>it works, but outputs <html> and </html> around
>my transformed content, which is not what I want,
>as I am generating some javascript and not html.
>
>So question: is it really required to have some
>markup tag as an envelope around what is being
>generated?
>
>Thanks
>
>Matthias
>
>_______________________________________________
>To control your jdom-interest membership:
>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>


__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




More information about the jdom-interest mailing list