Re: Where is my Content

Subject: Re: Where is my Content
From: Paul Prescod <paul@xxxxxxxxxxx>
Date: Tue, 16 Feb 1999 10:43:14 -0600
I can't tell you what to do to make your example work with IE5 but I can
tell you what to do to make it conform to the latest working draft.
Unfortunately, I don't know a lot about IE5's XSL support. I know that it
trails some other XSL engines. That isn't the developer's fault. It
because of the slower commercial software release schedule. Consequently I
wouldn't use it as my "test implementation" if I were you.

In particular I don't think you should expect it to handle the "fo:"
namespace. I dont' think that there is any XSL implementation that handles
the "fo:" namespace.

Other problems:

 * your namespace declarations are wrong. You forgot the ":" after "http". 

 * "process-children" changed to "apply-templates" in the current working
draft. IE5 probably supports the old one.

Hope that helps!

 Paul Prescod

Juliane Harbarth wrote:
> I installed IE5 and used Frank Boumphrey's 'New XSL'
> tutorial to construct a XSL stylesheet which was intended
> to display the following XML-document :
>     <?xml version="1.0" encoding="ISO-8859-1"?>
>     <?xml-stylesheet type="text/xsl" href="Dolly.xsl"?>
>     <xdoc>
>         <greeting>Hello Dolly</greeting>
>     </xdoc>
> The stylesheet "Dolly.xsl" is :
> <xsl:stylesheet
>         xmlns:xsl="http//"
>         xmlns:fo="http//"
>         result-ns="fo">
>     <xsl:template match="/">
>         <fo:page-sequence>
>             <fo:sequence>
>                 <xsl:text>root</xsl:text>
>                 <xsl:process-children/>
>             </fo:sequence>
>         </fo:page-sequence>
>     </xsl:template>
>     <xsl:template match="xdoc">
>         <fo:block>
>             <fo:sequence>
>                 <xsl:text>xdoc</xsl:text>
>                 <xsl:process-children/>
>             </fo:sequence>
>         </fo:block>
>     </xsl:template>
>     <xsl:template match="greeting">
>         <fo:block>
>             <fo:sequence>
>                 <xsl:text>greeting</xsl:text>
>                 <xsl:process-children/>
>             </fo:sequence>
>         </fo:block>
>     </xsl:template>
> </xsl:stylesheet>
> When I display my XML in IE5 the result is :
> root xdoc greeting
> It looks like the structure of the XML is
> properly recognised, but where is my content,
> i.e. "Hello Dolly" ?
> Juliane Harbarth
> Technical Consultant
> Software AG Germany
> mailto:jhb@xxxxxxxxxxxxxx
> Tel +49 (0)6151 92 1147
>  XSL-List info and archive:

 Paul Prescod  - ISOGEN Consulting Engineer speaking for only himself

If you spend any time administering Windows NT, you're far too familiar 
with the Blue Screen of Death (BSOD) which displays the cause of the 
crash and gives some information about the state of the system when 
it crashed.  -- "Microsoft Developer Network Magazine"

 XSL-List info and archive:

Current Thread