Posted by Brian V Bonini on 05/12/05 19:28
Need to be pointed in the right direction.
xml:
<quotes>
<quote_block>
<quote_text></quote_text>
<quote_author></quote_author>
</quote_block>
<quote_block>
<quote_text></quote_text>
<quote_author></quote_author>
</quote_block>
etc...
</quotes>
xsl:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:for-each select="quotes/quote_block">
<div style="margin-top: 10px; background-color: #f0f0f0; padding:
5px;">
<div style="text-align: left; font-weight: bold;"><xsl:value-of
select="quote_text"/></div>
<div style="text-align: left; font-style: italic;"><xsl:value-of
select="quote_author"/></div>
</div>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I know how to load the document, parse it, display contents etc... But
how can I grab just one group of values at a time using php?
--
Brian V Bonini
brian@gfx-design.com
GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
_________________________________________________________
gfx-Design
http://www.gfx-design.com
Key Info: http://www.gfx-design.com/keys
sales@gfx-design.com
Phone:(757)623-1655 Fax:(425)675-3094
Navigation:
[Reply to this message]
|