This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@teleport.com]
> Sent:	Friday, March 30, 2001 12:37 AM
> To:	XSL-List@lists.mulberrytech.com
> Subject:	[xsl] 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]