You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Billy Duke <du...@livingston.net> on 2005/08/08 04:17:41 UTC

[users@httpd] xml-xsl

I had allot of problems getting sablotron to work so I decided to install
apache2 and php5 instead of the older versions. I am assuming from others
posting that I shouldn't need sablotron now. But now I am still having some
of the same problems. When I try to view the XML/XSL web pages I only see
the code. What can I do? Please help.

Billy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by John Hicks <jo...@gulfbridge.net>.
 > Quoting Billy Duke <du...@livingston.net>:
 >
 >
 >>This is the erro that i got.
 >>
 >>Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
 >>C:\phpdev5\www\test1.php on line 3
 >>
 >>Parse error: parse error, unexpected T_STRING in 
C:\phpdev5\www\test1.php on
 >>line 3

Billy's error refers to a backslash, which doesn't occur in the code you 
gave hime.

I wonder if something (PHP maybe?) isn't escaping a quote along the way.

--John

Justin Gehring wrote:
> My Apologies, my email seems to have messed up the spacing... Try this:
> <?php
> $xml_string = '<?xml version="1.0"?><test><name>Hello
> World</name><notname>me</notname></test>';
> $xsl_string = '<xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
> match="/"><b><xsl:value-of
> select="/test/name"/></b></xsl:template></xsl:stylesheet>';
> $xml = DomDocument::loadXML($xml_string);
> $xsl = DomDocument::loadXML($xsl_string);
> //make a new XSLT Processor
> $proc = new xsltprocessor;
> // attach the xsl rules
> $proc->importStyleSheet($xsl);
> $result_string = $proc->transformToXML($xml);
> echo $result_string;
> ?>
> 
> I hope it doesn't happen again, there should only be 12 lines of code. The
> xml_string and xsl_string should be 1 line each.
> 
> -----------------------------
> --     Justin Gehring      --
> --   PH: 651 - 208 -8797   --
> --  EM: justin@jrcorps.com --
> -----------------------------
> 
> 
> Quoting Billy Duke <du...@livingston.net>:
> 
> 
>>This is the erro that i got.
>>
>>Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
>>C:\phpdev5\www\test1.php on line 3
>>
>>Parse error: parse error, unexpected T_STRING in C:\phpdev5\www\test1.php on
>>line 3
>>
>>----- Original Message -----
>>From: "Justin Gehring" <ju...@jrcorps.com>
>>To: <us...@httpd.apache.org>
>>Sent: Monday, August 08, 2005 1:16 AM
>>Subject: Re: [users@httpd] xml-xsl
>>
>>
>>
>>>I'm still not entirely sure of what you mean... If your looking to test to
>>>make
>>>sure that it's working with your new setup, please try the following block
>>>of
>>>code:
>>>
>>>///////////////////////////////// Begin Code
>>>
>>><?php
>>>$xml_string = '<?xml version="1.0"?><test><name>Hello
>>>World</name><notname>me</notname></test>';
>>>$xsl_string = '<xsl:stylesheet version="1.0"
>>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
>>>match="/"><b><xsl:value-of select="/test/name"
>>>/></b></xsl:template></xsl:stylesheet>';
>>>$xml = DomDocument::loadXML($xml_string);
>>>$xsl = DomDocument::loadXML($xsl_string);
>>>//make a new XSLT Processor
>>>$proc = new xsltprocessor;
>>>// attach the xsl rules
>>>$proc->importStyleSheet($xsl);
>>>$result_string = $proc->transformToXML($xml);
>>>echo $result_string;
>>>?>
>>>
>>>//////////////////// End Code
>>>
>>>
>>>You should get Hello World back with bold tags. If you get me back or an
>>>error,
>>>something is wrong. Let us know what happens.
>>>
>>>My Apologies to the group, this might be a little off topic from Apache.
>>>
>>>-----------------------------
>>>--     Justin Gehring      --
>>>--   PH: 651 - 208 -8797   --
>>>--  EM: justin@jrcorps.com --
>>>-----------------------------
>>>
>>>
>>>Quoting Billy Duke <du...@livingston.net>:
>>>
>>>
>>>>I am seeing the xml and the xsl. the php is working fine as far as i can
>>>>see.
>>>>----- Original Message -----
>>>>From: "Justin Gehring" <ju...@jrcorps.com>
>>>>To: <us...@httpd.apache.org>
>>>>Sent: Monday, August 08, 2005 12:12 AM
>>>>Subject: Re: [users@httpd] xml-xsl
>>>>
>>>>
>>>>
>>>>>What code are you seeing? The php? The XML? The XSL?
>>>>>
>>>>>-----------------------------
>>>>>--     Justin Gehring      --
>>>>>--   PH: 651 - 208 -8797   --
>>>>>--  EM: justin@jrcorps.com --
>>>>>-----------------------------
>>>>>
>>>>>
>>>>>Quoting Billy Duke <du...@livingston.net>:
>>>>>
>>>>>
>>>>>>I had allot of problems getting sablotron to work so I decided to
>>>>>>install
>>>>>>apache2 and php5 instead of the older versions. I am assuming from
>>>>>>others
>>>>>>posting that I shouldn't need sablotron now. But now I am still having
>>>>>>some
>>>>>>of the same problems. When I try to view the XML/XSL web pages I only
>>>>>>see
>>>>>>the code. What can I do? Please help.
>>>>>>
>>>>>>Billy
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>The official User-To-User support forum of the Apache HTTP Server
>>>>>>Project.
>>>>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>The official User-To-User support forum of the Apache HTTP Server
>>>>>Project.
>>>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>The official User-To-User support forum of the Apache HTTP Server
>>>>Project.
>>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>The official User-To-User support forum of the Apache HTTP Server Project.
>>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Billy Duke <du...@livingston.net>.
Hello, I would just like  to say thanks to all that have given advice on how 
to fix my problem. With some help from you guys and some friends the problem 
is resolved. I had to put the php.ini file in my c:\windows instead of 
c:\windows\system32. Thanks again.
Billy



----- Original Message ----- 
From: "Justin Gehring" <ju...@jrcorps.com>
To: <us...@httpd.apache.org>
Sent: Monday, August 08, 2005 1:24 PM
Subject: Re: [users@httpd] xml-xsl


> Hey Nick,
>
> Very true nick, but the intention was to debug Billy Dukes php setup not 
> write
> code that he would actually be using.
>
> -----------------------------
> --     Justin Gehring      --
> --   PH: 651 - 208 -8797   --
> --  EM: justin@jrcorps.com --
> -----------------------------
>
>
> Quoting Nick Kew <ni...@webthing.com>:
>
>> Justin Gehring wrote:
>>
>> > $xml = DomDocument::loadXML($xml_string);
>> > $xsl = DomDocument::loadXML($xsl_string);
>> > //make a new XSLT Processor
>> > $proc = new xsltprocessor;
>> > // attach the xsl rules
>> > $proc->importStyleSheet($xsl);
>> > $result_string = $proc->transformToXML($xml);
>>
>> Erk!
>>
>> That's going to be hugely, massively slow to run on
>> every request.  Far better to preprocess.  Or if it's
>> generated or proxied contents, use mod_transform.
>>
>> --
>> Nick Kew
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Justin Gehring <ju...@jrcorps.com>.
Hey Nick,

Very true nick, but the intention was to debug Billy Dukes php setup not write
code that he would actually be using.

-----------------------------
--     Justin Gehring      --
--   PH: 651 - 208 -8797   --
--  EM: justin@jrcorps.com --
-----------------------------


Quoting Nick Kew <ni...@webthing.com>:

> Justin Gehring wrote:
>
> > $xml = DomDocument::loadXML($xml_string);
> > $xsl = DomDocument::loadXML($xsl_string);
> > //make a new XSLT Processor
> > $proc = new xsltprocessor;
> > // attach the xsl rules
> > $proc->importStyleSheet($xsl);
> > $result_string = $proc->transformToXML($xml);
>
> Erk!
>
> That's going to be hugely, massively slow to run on
> every request.  Far better to preprocess.  Or if it's
> generated or proxied contents, use mod_transform.
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Nick Kew <ni...@webthing.com>.
Justin Gehring wrote:

> $xml = DomDocument::loadXML($xml_string);
> $xsl = DomDocument::loadXML($xsl_string);
> //make a new XSLT Processor
> $proc = new xsltprocessor;
> // attach the xsl rules
> $proc->importStyleSheet($xsl);
> $result_string = $proc->transformToXML($xml);

Erk!

That's going to be hugely, massively slow to run on
every request.  Far better to preprocess.  Or if it's
generated or proxied contents, use mod_transform.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Justin Gehring <ju...@jrcorps.com>.
My Apologies, my email seems to have messed up the spacing... Try this:
<?php
$xml_string = '<?xml version="1.0"?><test><name>Hello
World</name><notname>me</notname></test>';
$xsl_string = '<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
match="/"><b><xsl:value-of
select="/test/name"/></b></xsl:template></xsl:stylesheet>';
$xml = DomDocument::loadXML($xml_string);
$xsl = DomDocument::loadXML($xsl_string);
//make a new XSLT Processor
$proc = new xsltprocessor;
// attach the xsl rules
$proc->importStyleSheet($xsl);
$result_string = $proc->transformToXML($xml);
echo $result_string;
?>

I hope it doesn't happen again, there should only be 12 lines of code. The
xml_string and xsl_string should be 1 line each.

-----------------------------
--     Justin Gehring      --
--   PH: 651 - 208 -8797   --
--  EM: justin@jrcorps.com --
-----------------------------


Quoting Billy Duke <du...@livingston.net>:

> This is the erro that i got.
>
> Warning: Unexpected character in input: '\' (ASCII=92) state=1 in
> C:\phpdev5\www\test1.php on line 3
>
> Parse error: parse error, unexpected T_STRING in C:\phpdev5\www\test1.php on
> line 3
>
> ----- Original Message -----
> From: "Justin Gehring" <ju...@jrcorps.com>
> To: <us...@httpd.apache.org>
> Sent: Monday, August 08, 2005 1:16 AM
> Subject: Re: [users@httpd] xml-xsl
>
>
> > I'm still not entirely sure of what you mean... If your looking to test to
> > make
> > sure that it's working with your new setup, please try the following block
> > of
> > code:
> >
> > ///////////////////////////////// Begin Code
> >
> > <?php
> > $xml_string = '<?xml version="1.0"?><test><name>Hello
> > World</name><notname>me</notname></test>';
> > $xsl_string = '<xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
> > match="/"><b><xsl:value-of select="/test/name"
> > /></b></xsl:template></xsl:stylesheet>';
> > $xml = DomDocument::loadXML($xml_string);
> > $xsl = DomDocument::loadXML($xsl_string);
> > //make a new XSLT Processor
> > $proc = new xsltprocessor;
> > // attach the xsl rules
> > $proc->importStyleSheet($xsl);
> > $result_string = $proc->transformToXML($xml);
> > echo $result_string;
> > ?>
> >
> > //////////////////// End Code
> >
> >
> > You should get Hello World back with bold tags. If you get me back or an
> > error,
> > something is wrong. Let us know what happens.
> >
> > My Apologies to the group, this might be a little off topic from Apache.
> >
> > -----------------------------
> > --     Justin Gehring      --
> > --   PH: 651 - 208 -8797   --
> > --  EM: justin@jrcorps.com --
> > -----------------------------
> >
> >
> > Quoting Billy Duke <du...@livingston.net>:
> >
> >> I am seeing the xml and the xsl. the php is working fine as far as i can
> >> see.
> >> ----- Original Message -----
> >> From: "Justin Gehring" <ju...@jrcorps.com>
> >> To: <us...@httpd.apache.org>
> >> Sent: Monday, August 08, 2005 12:12 AM
> >> Subject: Re: [users@httpd] xml-xsl
> >>
> >>
> >> > What code are you seeing? The php? The XML? The XSL?
> >> >
> >> > -----------------------------
> >> > --     Justin Gehring      --
> >> > --   PH: 651 - 208 -8797   --
> >> > --  EM: justin@jrcorps.com --
> >> > -----------------------------
> >> >
> >> >
> >> > Quoting Billy Duke <du...@livingston.net>:
> >> >
> >> >> I had allot of problems getting sablotron to work so I decided to
> >> >> install
> >> >> apache2 and php5 instead of the older versions. I am assuming from
> >> >> others
> >> >> posting that I shouldn't need sablotron now. But now I am still having
> >> >> some
> >> >> of the same problems. When I try to view the XML/XSL web pages I only
> >> >> see
> >> >> the code. What can I do? Please help.
> >> >>
> >> >> Billy
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> The official User-To-User support forum of the Apache HTTP Server
> >> >> Project.
> >> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> >> For additional commands, e-mail: users-help@httpd.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > The official User-To-User support forum of the Apache HTTP Server
> >> > Project.
> >> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> > For additional commands, e-mail: users-help@httpd.apache.org
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> >> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] xml-xsl

Posted by Thomas <th...@gmx.net>.
Hey Billy,

I just tested your script and it worked just fine. Maybe you should check
your php setup. I doubt that has got anything to do with Apache (because you
are using the xsl transformer as php extension - not?)
That error message is a php parser message. If you still struggle direct
your question to the php-general list.

Regards,

Thomas

-----Original Message-----
From: Billy Duke [mailto:duke011@livingston.net] 
Sent: 08 August 2005 09:53 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] xml-xsl

This is the erro that i got.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
C:\phpdev5\www\test1.php on line 3

Parse error: parse error, unexpected T_STRING in C:\phpdev5\www\test1.php on

line 3

----- Original Message ----- 
From: "Justin Gehring" <ju...@jrcorps.com>
To: <us...@httpd.apache.org>
Sent: Monday, August 08, 2005 1:16 AM
Subject: Re: [users@httpd] xml-xsl


> I'm still not entirely sure of what you mean... If your looking to test to

> make
> sure that it's working with your new setup, please try the following block

> of
> code:
>
> ///////////////////////////////// Begin Code
>
> <?php
> $xml_string = '<?xml version="1.0"?><test><name>Hello
> World</name><notname>me</notname></test>';
> $xsl_string = '<xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
> match="/"><b><xsl:value-of select="/test/name"
> /></b></xsl:template></xsl:stylesheet>';
> $xml = DomDocument::loadXML($xml_string);
> $xsl = DomDocument::loadXML($xsl_string);
> //make a new XSLT Processor
> $proc = new xsltprocessor;
> // attach the xsl rules
> $proc->importStyleSheet($xsl);
> $result_string = $proc->transformToXML($xml);
> echo $result_string;
> ?>
>
> //////////////////// End Code
>
>
> You should get Hello World back with bold tags. If you get me back or an 
> error,
> something is wrong. Let us know what happens.
>
> My Apologies to the group, this might be a little off topic from Apache.
>
> -----------------------------
> --     Justin Gehring      --
> --   PH: 651 - 208 -8797   --
> --  EM: justin@jrcorps.com --
> -----------------------------
>
>
> Quoting Billy Duke <du...@livingston.net>:
>
>> I am seeing the xml and the xsl. the php is working fine as far as i can
>> see.
>> ----- Original Message -----
>> From: "Justin Gehring" <ju...@jrcorps.com>
>> To: <us...@httpd.apache.org>
>> Sent: Monday, August 08, 2005 12:12 AM
>> Subject: Re: [users@httpd] xml-xsl
>>
>>
>> > What code are you seeing? The php? The XML? The XSL?
>> >
>> > -----------------------------
>> > --     Justin Gehring      --
>> > --   PH: 651 - 208 -8797   --
>> > --  EM: justin@jrcorps.com --
>> > -----------------------------
>> >
>> >
>> > Quoting Billy Duke <du...@livingston.net>:
>> >
>> >> I had allot of problems getting sablotron to work so I decided to 
>> >> install
>> >> apache2 and php5 instead of the older versions. I am assuming from 
>> >> others
>> >> posting that I shouldn't need sablotron now. But now I am still having
>> >> some
>> >> of the same problems. When I try to view the XML/XSL web pages I only 
>> >> see
>> >> the code. What can I do? Please help.
>> >>
>> >> Billy
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> The official User-To-User support forum of the Apache HTTP Server
>> >> Project.
>> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > The official User-To-User support forum of the Apache HTTP Server 
>> > Project.
>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Billy Duke <du...@livingston.net>.
This is the erro that i got.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
C:\phpdev5\www\test1.php on line 3

Parse error: parse error, unexpected T_STRING in C:\phpdev5\www\test1.php on 
line 3

----- Original Message ----- 
From: "Justin Gehring" <ju...@jrcorps.com>
To: <us...@httpd.apache.org>
Sent: Monday, August 08, 2005 1:16 AM
Subject: Re: [users@httpd] xml-xsl


> I'm still not entirely sure of what you mean... If your looking to test to 
> make
> sure that it's working with your new setup, please try the following block 
> of
> code:
>
> ///////////////////////////////// Begin Code
>
> <?php
> $xml_string = '<?xml version="1.0"?><test><name>Hello
> World</name><notname>me</notname></test>';
> $xsl_string = '<xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
> match="/"><b><xsl:value-of select="/test/name"
> /></b></xsl:template></xsl:stylesheet>';
> $xml = DomDocument::loadXML($xml_string);
> $xsl = DomDocument::loadXML($xsl_string);
> //make a new XSLT Processor
> $proc = new xsltprocessor;
> // attach the xsl rules
> $proc->importStyleSheet($xsl);
> $result_string = $proc->transformToXML($xml);
> echo $result_string;
> ?>
>
> //////////////////// End Code
>
>
> You should get Hello World back with bold tags. If you get me back or an 
> error,
> something is wrong. Let us know what happens.
>
> My Apologies to the group, this might be a little off topic from Apache.
>
> -----------------------------
> --     Justin Gehring      --
> --   PH: 651 - 208 -8797   --
> --  EM: justin@jrcorps.com --
> -----------------------------
>
>
> Quoting Billy Duke <du...@livingston.net>:
>
>> I am seeing the xml and the xsl. the php is working fine as far as i can
>> see.
>> ----- Original Message -----
>> From: "Justin Gehring" <ju...@jrcorps.com>
>> To: <us...@httpd.apache.org>
>> Sent: Monday, August 08, 2005 12:12 AM
>> Subject: Re: [users@httpd] xml-xsl
>>
>>
>> > What code are you seeing? The php? The XML? The XSL?
>> >
>> > -----------------------------
>> > --     Justin Gehring      --
>> > --   PH: 651 - 208 -8797   --
>> > --  EM: justin@jrcorps.com --
>> > -----------------------------
>> >
>> >
>> > Quoting Billy Duke <du...@livingston.net>:
>> >
>> >> I had allot of problems getting sablotron to work so I decided to 
>> >> install
>> >> apache2 and php5 instead of the older versions. I am assuming from 
>> >> others
>> >> posting that I shouldn't need sablotron now. But now I am still having
>> >> some
>> >> of the same problems. When I try to view the XML/XSL web pages I only 
>> >> see
>> >> the code. What can I do? Please help.
>> >>
>> >> Billy
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> The official User-To-User support forum of the Apache HTTP Server
>> >> Project.
>> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> >> For additional commands, e-mail: users-help@httpd.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > The official User-To-User support forum of the Apache HTTP Server 
>> > Project.
>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Justin Gehring <ju...@jrcorps.com>.
I'm still not entirely sure of what you mean... If your looking to test to make
sure that it's working with your new setup, please try the following block of
code:

///////////////////////////////// Begin Code

<?php
$xml_string = '<?xml version="1.0"?><test><name>Hello
World</name><notname>me</notname></test>';
$xsl_string = '<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template
match="/"><b><xsl:value-of select="/test/name"
/></b></xsl:template></xsl:stylesheet>';
$xml = DomDocument::loadXML($xml_string);
$xsl = DomDocument::loadXML($xsl_string);
//make a new XSLT Processor
$proc = new xsltprocessor;
// attach the xsl rules
$proc->importStyleSheet($xsl);
$result_string = $proc->transformToXML($xml);
echo $result_string;
?>

//////////////////// End Code


You should get Hello World back with bold tags. If you get me back or an error,
something is wrong. Let us know what happens.

My Apologies to the group, this might be a little off topic from Apache.

-----------------------------
--     Justin Gehring      --
--   PH: 651 - 208 -8797   --
--  EM: justin@jrcorps.com --
-----------------------------


Quoting Billy Duke <du...@livingston.net>:

> I am seeing the xml and the xsl. the php is working fine as far as i can
> see.
> ----- Original Message -----
> From: "Justin Gehring" <ju...@jrcorps.com>
> To: <us...@httpd.apache.org>
> Sent: Monday, August 08, 2005 12:12 AM
> Subject: Re: [users@httpd] xml-xsl
>
>
> > What code are you seeing? The php? The XML? The XSL?
> >
> > -----------------------------
> > --     Justin Gehring      --
> > --   PH: 651 - 208 -8797   --
> > --  EM: justin@jrcorps.com --
> > -----------------------------
> >
> >
> > Quoting Billy Duke <du...@livingston.net>:
> >
> >> I had allot of problems getting sablotron to work so I decided to install
> >> apache2 and php5 instead of the older versions. I am assuming from others
> >> posting that I shouldn't need sablotron now. But now I am still having
> >> some
> >> of the same problems. When I try to view the XML/XSL web pages I only see
> >> the code. What can I do? Please help.
> >>
> >> Billy
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> >> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Billy Duke <du...@livingston.net>.
I am seeing the xml and the xsl. the php is working fine as far as i can 
see.
----- Original Message ----- 
From: "Justin Gehring" <ju...@jrcorps.com>
To: <us...@httpd.apache.org>
Sent: Monday, August 08, 2005 12:12 AM
Subject: Re: [users@httpd] xml-xsl


> What code are you seeing? The php? The XML? The XSL?
>
> -----------------------------
> --     Justin Gehring      --
> --   PH: 651 - 208 -8797   --
> --  EM: justin@jrcorps.com --
> -----------------------------
>
>
> Quoting Billy Duke <du...@livingston.net>:
>
>> I had allot of problems getting sablotron to work so I decided to install
>> apache2 and php5 instead of the older versions. I am assuming from others
>> posting that I shouldn't need sablotron now. But now I am still having 
>> some
>> of the same problems. When I try to view the XML/XSL web pages I only see
>> the code. What can I do? Please help.
>>
>> Billy
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] xml-xsl

Posted by Justin Gehring <ju...@jrcorps.com>.
What code are you seeing? The php? The XML? The XSL?

-----------------------------
--     Justin Gehring      --
--   PH: 651 - 208 -8797   --
--  EM: justin@jrcorps.com --
-----------------------------


Quoting Billy Duke <du...@livingston.net>:

> I had allot of problems getting sablotron to work so I decided to install
> apache2 and php5 instead of the older versions. I am assuming from others
> posting that I shouldn't need sablotron now. But now I am still having some
> of the same problems. When I try to view the XML/XSL web pages I only see
> the code. What can I do? Please help.
>
> Billy
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org