Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML tips or tutorials???

Status
Not open for further replies.

gregmosu

Programmer
Jul 8, 2002
117
0
0
US
I've been asked to provide some kind of xml solution for mainting content in a web site. So far, I cant find any examples other than iterating thru records and displaying it in a table... I'm not even sure xml is a good idea. Heres a quick example of what I need to do. Suppose I have these elements in a page that need updated regulary...

<page_source>
<title>First Page</title>
<message>message goes here...</message>
<conclusion>conslusion goes here...</conclusion>
</page_source>

Now comes the confusing part. I need to put together an XLS stylesheet to convert this into html. So far, all i can get it to do is output all the data from the xml page in a row.

Is there a way to access and put different peices of page_source here and there?

By the way, I'm using Oxygen.

Thanks,
Greg

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl=" version="1.0">
<xsl:template match="/">
<html>
<xsl:apply-templates/>
</xsl:element>
</html>
</xsl:template>
<xsl:template match="//page_source">
<font name="verdana" size="4">
<xsl:value-of select="title/text()"/>
</font>
</xsl:template>
</xsl:stylesheet>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top