  | |  | How to use XSL-FOP-Java together | How to use XSL-FOP-Java together 2003-12-29 - By Clay Leeds
Back On Dec 29, 2003, at 6:52 AM, Crist?bal Ruiz, Oscar wrote: > Well, I solved the previous bug. Finally, there was an Unicode mark at > the > begining of my xml file. > > But now I got another bug. The exception states that I dont have any > root > element in my document... and it is there!!! > Do you have some other suggestion for this kind of exception? > > Thanks > Oscar
Perhaps the problem is in the xsl:apply-templates element:
> <fo:page-sequence master-reference="only"> > > <fo:flow flow-name="xsl-region-body"> > <xsl:apply-templates select="//ATOM"/> > </fo:flow> > > </fo:page-sequence>
Notice it shows "//ATOM"? Since "ATOM" is the root element ("/ATOM"), this could be problem (I'm not sure, though). Try changing this to:
> <fo:page-sequence master-reference="only"> > > <fo:flow flow-name="xsl-region-body"> > <xsl:apply-templates select="ATOM"/> > </fo:flow> > > </fo:page-sequence>
I've remove the leading "/" since it's referenced in the original <xsl:template match="/"> tag/attribute. If this doesn't work, or make the "ATOM" element/node a child of a root element such as "doc":
<?xml version = '1.0'?> <doc> <ATOM> <NAME> Plata </NAME> </ATOM> </doc>
Perhaps that'll work better?
Web Maestro Clay
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: fop-user-unsubscribe@(protected) For additional commands, e-mail: fop-user-help@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |