Subject: [xsl] XSL namespace question From: Samina Islam <samnaz123@xxxxxxxxx> Date: Thu, 19 Jul 2001 09:28:09 -0700 (PDT) |
Hi, I'm trying to take a XML document (from moveover.com) and using an XSL stylesheet convert it into PRISM. but my output file is not coming out. this is what my XSL code looks like: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/"> <xml> <body> <xsl:template match="article"> <dc:identifier> <dc:block><xsl:apply-templates/></dc:block> <dc:description> <dc:subject><xsl:value-of select="moreovernews/article/headline_text"/> </dc:subject> </dc:description> </dc:identifier> <dc:contributor> <dc:block><xsl:apply-templates/></dc:block> <dc:description> <dc:source><xsl:value-of select="source"/></dc:source> </dc:description> </dc:contributor> </xsl:template> </body> </xml> </xsl:stylesheet> When I run this, inputing the xml doc, this xsl doc and an out put filename. the output file cannot be opened. it says: "Only one top level element is allowed in an XML document. Line 14, Position 81 </dc:block><dc:description><dc:subject/></dc:description></dc:identifier><dc:contributor xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:block>" Can anyone help with my problem? Thanks!! --in advanced :-) Samina __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] parent -child, srikanth | Thread | Re: [xsl] XSL namespace question, Jeni Tennison |
RE: RES: [xsl] Namespace, Bedwell Tom | Date | [xsl] newline white space, Lisa Rupe |
Month |