XML/XSL parsing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx
Phone:(757)623-1655  Fax:(425)675-3094  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux