Subject: Re: [xsl] [XML namespaces] From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx> Date: Tue, 24 Mar 2009 13:50:32 +0800 |
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:dc="http://url.com"> <xsl:output method="xml"/> <xsl:template match="catalog"> <xsl:for-each select="item"> <Document> <xsl:for-each select="category"> <Category><xsl:value-of select="."/></Category> </xsl:for-each> <xsl:copy-of select="dc:source"/>
</Document> </xsl:for-each> </xsl:template> </xsl:stylesheet>
My XML file:
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="spinner2dml.xsl"?>
<catalog xmlns:dc="http://www.w3.org/">
<item>
<title>~*Rainbow Guidance*~</title>
<link>http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=13345245&blogID=420014399 </link>
<guid>http://blog.myspace.com/index.cfm?fuseaction=blog.view&friendID=13345245&blogID=420014399 </guid>
<pubDate>Fri, 01 Aug 2008 00:04:38 GMT</pubDate>
<dc:source>http://blog.myspace.com/kristindunngalbraith</dc:source>
<category>Dreams and the Supernatural</category> </item> </catalog>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [XML namespaces], Pedro Henrique Marqu | Thread | [xsl] Identity Tranlate, too many n, Karl Stubsjoen |
Re: [xsl] [XML namespaces], Pedro Henrique Marqu | Date | RE: [xsl] Pattern question: first c, Michael Kay |
Month |