[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL namespace question

Subject: XSL namespace question
From: Samina Islam <samnaz123@xxxxxxxxx>
Date: Thu, 19 Jul 2001 09:28:09 -0700 (PDT)
xsl hyperlink namespace
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.