I'm trying to make sort of a simple template system using XML.
Imagine the following xml code:
<page>
<header>...</header>
<body>
<title>My News</title>
<?news to_list 10?>
</body>
</page>
First of all the xml should be parsed and the PI about the news should be
executed. This PI gives back some more XML code that should be placed in
the original document to replace the PI.
How do I get this result?
I'm thinking parsing it with a sax and just echo'ing all the tags and
attributes again is not an elegant solution.
But it's the only way I see...
Anyone any ideas?
--
Rutger Claes
Imagine the following xml code:
<page>
<header>...</header>
<body>
<title>My News</title>
<?news to_list 10?>
</body>
</page>
First of all the xml should be parsed and the PI about the news should be
executed. This PI gives back some more XML code that should be placed in
the original document to replace the PI.
How do I get this result?
I'm thinking parsing it with a sax and just echo'ing all the tags and
attributes again is not an elegant solution.
But it's the only way I see...
Anyone any ideas?
--
Rutger Claes