Thanks for your help. I solved the problem. The
problem
turned out to be with w3.org.Document, I did several
rounds of transformations from xml to document then to
xml string, fo tags were lost during the process.

cheers, 


--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:
> > -----Original Message-----
> > From: Rick Col [mailto:[EMAIL PROTECTED]
> >
> 
> Hi,
> 
> > This is a piece of sample code from XSLT Quickly,
> it
> > does not work the way as its author said.
> >
> 
> For starters, you have no matching template for poem
> elements, so the
> poem/title and poem/verse elements never get reached
> by the
> apply-templates... only their textual content to
> which the default template
> rule is applied (basically: just copy the text)
> 
> If there is only one poem in your source XML, you
> could change the root
> matching template (match="/") to match the poem root
> (match="/poem"). IIC,
> that should do the trick.
> 
> Another (very minor) detail:
> >
> > xsl document:
> > <?xml version="1.0"?>
> > <xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> > xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> >
> > <xsl:output method="xml" indent="yes"/>
> >
> > <xsl:template match="/">
> > <fo:root
> xmlns:fo="http://www.w3.org/1999/XSL/Format";>
> >
> 
> You don't need to specify the FO namespace again on
> fo:root. It's already
> defined on the xsl:stylesheet element, so your
> result tree will
> automatically be in that namespace.
> 
> 
> HTH!
> 
> Greetz,
> 
> Andreas
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to