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

RE: XSL/XSP formatting problem

Subject: RE: XSL/XSP formatting problem
From: "Jay" <blueegg@xxxxxxxxxxxx>
Date: Tue, 3 Apr 2001 09:06:04 -0700
xml with xsp
My XML goes through two XSLT processes.  First contact-xsp.xsl, then
contact-html.xsl.

If, in contact-html.xsl I use <xsl:copy-of select="test2" />, I see that
what is in the resulting HTML is just <test2></test2>.

If, in the XML file, I comment out the XSLT process that invokes
contact-html.xsl, then the resulting "xml" that gets sent to the browser is

	<test2><a href="contact.xml?1">BennettMark</a><a
href="contact.xml?2">LoihlRobert</a><a
href="contact.xml?3">WinkelmanGil</a></test2>

as one long string.  (This taken from "view source" in the browser).

I'm at a loss for why it the first XSLT (with XSP) would seemingly produce
the correct XML string, but that the second would not be able to pick it up,
reading only <test2></test2>.

I could send along my xml/xsl if that would help, but I didn't want to add
too much clutter.

Jay


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Dylan Walsh
> Sent: Friday, March 30, 2001 6:53 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  XSL/XSP formatting problem
>
>
> Put <xsl:copy-of select="test2" /> in your XSLT for debugging. Then look
> at the source in your browser to see exactly what is being passed to the
> XSL processor by XSP.
>
> > -----Original Message-----
> > From:	Jay [SMTP:blueegg@xxxxxxxxxxxx]
> > Sent:	Friday, March 30, 2001 12:37 AM
> > To:	XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:	 XSL/XSP formatting problem
> >
> >
> > I'm using tomcat/cocoon on an NT box trying to process XML through two
> > separate XSLT processes.
> > The first process uses XSP to create XML that is used by a second XSLT
> > process.
> >
> > The result of the first process is creating an element (<test2>) which
> > contains a number of other elements (<a>), which are all to be used as
> > <a
> > href="blahblah">blah</a> tags.
> >
> > Using XSP to dynamically create these <a> tags, I get the following
> > string:
> >
> > <test2><a href="go.xml?id=1">a</a><a href="go.xml?id=2">b</a><a
> > href="go.xml?id=3">c</a></test2>
> >
> > and the <a> elements in <test2> are being ignored by my xsl
> > stylesheet.
> >
> > If I create an xml file by hand and format it such:
> >
> > <test2>
> > 	<a href="go.xml?id=1">a</a>
> > 	<a href="go.xml?id=2">b</a>
> > 	<a href="go.xml?id=3">c</a>
> > </test2>
> >
> > then my xsl stylesheet handles it fine.
> >
> > I assume something happens in the resultant XML string produced by XSP
> > that
> > is keeping my xsl from formatting it properly.
> >
> > Any ideas why.  Or how to fix it?
> >
> > Thanks,
> > Jay
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>  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.