You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Sc...@lotus.com on 2000/03/04 01:09:49 UTC

Re: urgent! html result not correct?

Gosh, I couldn't figure it out at first either.  You scared the hell out of
me because I thought I had a nasty bug with simple styesheets.  It turns
out you are missing a start tag ("<") just before xsl:value-of, so the
processor was doing exactly what it was supposed to do.  Easy to miss (I
missed it too at first).  Add the "<" and it seems to work just fine.

-scott




                                                                                                                 
                    Neelam Checknita                                                                             
                    <NChecknita@burn        To:     "'xalan-dev@xml.apache.org'" <xa...@xml.apache.org>      
                    tsand.com>              cc:     (bcc: Scott Boag/CAM/Lotus)                                  
                                            Subject:     urgent! html result not correct?                        
                    03/03/00 02:57                                                                               
                    PM                                                                                           
                    Please respond                                                                               
                    to xalan-dev                                                                                 
                                                                                                                 
                                                                                                                 




Hi

I'm using Xalan to convert an xsl stylesheet plus and xml into an HTML
page.
However, I don't think my results are correct.  Consider
the following inputs:

XML:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"?>
<greeting>
Hello World.
</greeting>

XSL:

<?xml version="1.0"?>
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<head><title>Greeting</title></head>
<body>Words of greeting:<br/>
           <b><i><u>xsl:value-of select="greeting"/></u></i></b>
</body>
</html>

HTML result:

<html>
<head>
<title>Greeting</title>
</head>
<body>Words of greeting:<br>
<b><i>
<u>xsl:value-of select="greeting"/&gt;</u>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</i></b>
</body>
</html>

My problem is the line with the ^^^^'s under it:  why is that xsl tag in
the
parsed output?  should that be removed and simply say:  "Hello World"?

Your help will be *extremely* appreciated!

Thanks,

nchecknita