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

RE: XSL DOCTYPE

Subject: RE: XSL DOCTYPE
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 8 Mar 2005 21:45:17 -0000
xsl doctype
No, the DOCTYPE is not present in the data model passed as input to the
transformation.

I think I would tackle this requirement by writing a pre-filter that wraps
the DOCTYPE declaration up ina structured XML representation, and a
post-filter that does the reverse. Since this is a common requirement, it
would be nice to see someone package this up as an off-the-peg component.

Saxon has an extension saxon:doctype which enables you to generate a DOCTYPE
(that is, a DTD internal subset) in the serialized output, but it doesn't
offer anything on the input side.

Michael Kay
http://www.saxonica.com/  

> -----Original Message-----
> From: c p [mailto:bugs75il@xxxxxxxxx] 
> Sent: 08 March 2005 18:21
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XSL DOCTYPE
> 
> Hello all,
> 
> I am doing a XML-to-XML transformation using XSL.  In
> the newly formed (target) xml, I would like to carry
> over any Doctype/entity declarations that existed in
> the old (source) xml.  Additionally in the newly
> formed (target) xml, I would like to add some
> additional entities.
> 
> Is there a way to do this?  Is it even possible?
> 
> Thanks,
> C
> 
> 
> 	
> 		
> __________________________________ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/

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.