Subject: [xsl] php xml xsl transformation returning empty string From: nalopaleaahu@xxxxxxx Date: Sat, 01 Oct 2005 19:09:44 -0400 |
function Interpret_Comment_to_HTML( $jpeg_header_data ) { // Create a string to receive the output $output = "";
// read the comment segment $comment = get_jpeg_Comment( $jpeg_header_data );
// Return the result return $output; }
rdfpic.xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:DC="http://purl.oclc.org/dc/documents/rec-dces-199809.htm#" xmlns:Technical="http://www.w3.org/2000/PhotoRDF/technical-1-0#" version="1.0"> <xsl:output method="html" indent="no"/> <xsl:template match="/"> <xsl:apply-templates/> <xsl:for-each select="*"> <xsl:value-of select="@name"/>: <xsl:value-of select="*"/> </xsl:for-each> </xsl:template> </xsl:stylesheet>
xml array data is: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/1999/09/28-Photo-ns#" xmlns:DC="http://purl.oclc.org/dc/documents/rec-dces-199809.htm#" xmlns:Technical="http://www.w3.org/2000/PhotoRDF/technical-1-0#"> <rdf:Description about="for awhile"> <DC:Description>Take one</DC:Description> <DC:Type>image/jpeg</DC:Type> <DC:Subject>computers</DC:Subject> <DC:Source>ccd</DC:Source> <DC:Rights>public domain</DC:Rights> <DC:Title>Lets get this working</DC:Title> <DC:Date>2005-04-20</DC:Date> <DC:Coverage>USA</DC:Coverage> <DC:Creator>Me</DC:Creator> <Technical:devel-date>2005-05-01</Technical:devel-date> <Technical:lens>Minolta AF70-210</Technical:lens> <Technical:camera>Minolta800i</Technical:camera> <Technical:film>Fuji</Technical:film> </rdf:Description> </rdf:RDF>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-List Guidelines, Mulberry Technologie | Thread | Re: [xsl] php xml xsl transformatio, andrew welch |
RE: [xsl] xml-xsl transform error, Michael Kay | Date | Re: [xsl] php xml xsl transformatio, andrew welch |
Month |