The answer is simple. Our web still runs on an ancient version of Charlie,
which includes Sablotron 0.36 (you know, everyone is busy with other
projects...) The 0.36, on contrary to 0.44, has been far away from the
output conformity; this is why templates are full of strange workarounds.

You don't need to write

 <A
HREF="/charlie-bin/get/webGA/act/products.act">PRO
DUCTS</A> |
 <A

now. Instead type <A
HREF="/charlie-bin/get/webGA/act/products.act">PRODUCTS</A>.

Generally, use XSLT as described by W3C specifications. Derivations are
treated as bugs or missing features. Should you be in troubles, feel free
to post questions to this list.

Regards,
Petr

Andrej Pietschker wrote:

> 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">
>       &lt;META http-equiv="Content-Type"
>       content="text/html; charset=UTF-8">
>
> Reoccuring:
>               &amp;nbsp;&lt;A
> HREF="/charlie-bin/get/webGA/act/products.act">PRO
> DUCTS&lt;/A>&amp;nbsp;|
>               &amp;nbsp;&lt;A
> HREF="/charlie-bin/get/webGA/act/library.act">LIBR
> ARY&lt;/A>&amp;nbsp;|
>               &amp;nbsp;&lt;A
> HREF="/charlie-bin/get/webGA/act/download.act">DOW
> NLOAD&lt;
>
> 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?

--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com


Reply via email to