Hi,
I was trying to use XML and XSL with PHP4 to drive the website creation
from a single XML source.
So I took a look at general.xsl, global.xml, head.xsl, inside.xml,
leftbar.xsl, and top.xsl and ran it through sabcmd. I am using
solaris2.7 and sablotron 0.44 libraries.
The result is somewhat disappointing.
Had to change some of the document(..)-calls from absolute to relative
file names.
But nothing else. Now I will be quoting from the html document that was
the result of the transformation.
I seems there is a problem with escaping:
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<META http-equiv="Content-Type"
content="text/html; charset=UTF-8">
Reoccuring:
&nbsp;<A
HREF="/charlie-bin/get/webGA/act/products.act">PRO
DUCTS</A>&nbsp;|
&nbsp;<A
HREF="/charlie-bin/get/webGA/act/library.act">LIBR
ARY</A>&nbsp;|
&nbsp;<A
HREF="/charlie-bin/get/webGA/act/download.act">DOW
NLOAD<
A way around this is to enclose each line in xsl:text, because
<xsl:..> turn off escaping even within xsl:text.
I am not sure about this:
<P><para>
This page is here to give you a clear example of how Charlie
can work. Please, keep in mind that it is intentionally simple.
We use only static sources here. To see the sources, please click
the corresponding links. Each source opens in a new window, so that
you can continue reading.
</para></P>
Here the para tag is part of the xml file and is copied into the html
with this instruction:
<xsl:for-each select="para">
<P>
<xsl:copy-of select="."/>
</P>
</xsl:for-each>
The <para> tag is nearly ignored by the browser, but I would prefer it
being not there at all. And <xsl:value-of> is not an option, because I
want to preserve the html tags contained in <para>.
Any ideas?
Cheers,
Andrej
PS: So how come your website is actually displaying things correctly?