On Fri, Sep 13, 2002 at 06:05:24PM +0200, Ralf Ullrich wrote:
> Now when I try to point my browser to say 
> http://localhost/axkit/test.xml, which should call an 
> XPathScript-StyleSheet via
> <?xml-stylesheet href="test.xps" type="application/x-xpathscript"?>
> 
> my browser returns no output at all.
> Did somebody else experience similar problems with xpathscript? I used 
> the examples from Matts dromedaries xml-file.

Hmm, I am not sure what examples you are using but a

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/junk/dromeds.xps" type="application/x-xpathscript"?>
<dromedaries>
    <species name="Camel">
      <humps>1 or 2</humps>
      <disposition>Cranky</disposition>
    </species>
    <species name="Llama">
      <humps>1 (sort of)</humps>
      <disposition>Aloof</disposition>
    </species>
    <species name="Alpaca">
      <humps>(see Llama)</humps>
      <disposition>Friendly</disposition>
    </species>
</dromedaries>

together with a

<%
$t->{'species'}{testcode} = sub {
                my $node = shift;
                $t->{'species'}{pre} = "<h2>" . findvalue('./@name', $node);
                $t->{'species'}{post} = "</h2>";
                return 1;
                };
%>
<html><body><%= apply_templates ('*')%></body></html>

works here.

\rho

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

Reply via email to