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

RE: question about transformation

Subject: RE: question about transformation
From: Marco.Mistroni@xxxxxxxxx
Date: Mon, 22 Nov 1999 17:09:03 +0200
question transformation
Hi
	try to do like this
<xsl:template match="/">
	<?xml blah blah blah
</xsl:template>

rgds
	marco

> -----Original Message-----
> From: EXT Yannick Nicolas [mailto:yannick@xxxxxxxxxxxxxxxx]
> Sent: 22. November 1999 17:23
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: question about transformation
> 
> 
> Hello people!
> I'm quite new to XML and XSL, and I've got one problem.
> I've written a simple stylesheet to transform an XML document 
> into another
> XML document that have a different dtd.
> I want to include at the begin of the transformed document 
> the XML reference.
> If I want to put a tag, I just write in my stylesheet something like:
> 
>   <xsl:template match="paragraph">
>     <p>
>       <xsl:apply-templates/>
>     </p>
>   </xsl:template>
> 
> but if I want to include my dtd reference, I try with a XSLT 
> stylesheet like:
> 
>  <?xml version="1.0"?>
>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
> 
>   <xsl:template match="body">
>     <?xml version="1.0"?>
>     <!DOCTYPE btml PUBLIC "http://www.btml.org/DTD/btml0.6.xml">
>     <b>
>       <xsl:apply-templates/>
>     </b>
>   </xsl:template>
> 
> 
> my initial document looks like :
> 
>     <?xml version="1.0"?>
>     <!DOCTYPE ktml PUBLIC "http://www.btml.org/ktml/DTD/ktml0.1.xml">
>     <body>
>        this is the body
>     </body>
> 
> 
> I want my final document to look like:  
> 
>     <?xml version="1.0"?>
>     <!DOCTYPE btml PUBLIC "http://www.btml.org/DTD/btml0.6.xml">
>     <b>
>        this is the body
>     </b>
> 
> 
> I've got an error in my stylesheet at the begin of "?xml..." 
> and at the begin 
> of "<!DOCTYPE...". I don't understand why I can't include in 
> my final document 
> a tag that starts by "<?" or "<!"
> Can someone explain me ?
> Thank you!
> 
> Yannick Nicolas, software engineer
> yannick@xxxxxxxxxxxxxxxx
> 
> 
> Adresses gratuites et illimitées sur http://bretagne.zzn.com
> ______________________________________________________________
> ____________________
> Constituez votre propre service d'e-mail sur le Web à 
> l'adresse http://www.zzn.com
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.