Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2008, 09:58 AM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Default Copying DOCTYPE in input to the output xml

Hi All,

Is there any way to copyt the input DOCTYPE to the output xml?

The input and output DOCTYPE can be like
<!DOCTYPE Section [
<!NOTATION cgm SYSTEM "">
<!NOTATION jpg SYSTEM "">
<!ENTITY Figure1 SYSTEM "Figure11.cgm" NDATA cgm>
<!ENTITY Figure2 SYSTEM "Figure12.jpg" NDATA cgm>
]>

Any help is appreciated.

Thanks

__________________
Rummy
 
Old July 30th, 2008, 10:03 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

The document type is not part of the XSLT/XPath data model so you can't copy a DOCTYPE in the input to the output.


--
  Martin Honnen
  Microsoft MVP - XML
 
Old July 30th, 2008, 03:52 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Default

thank you

 
Old July 31st, 2008, 04:26 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 291
Thanks: 9
Thanked 29 Times in 29 Posts
Default

Is there any way to process those lines? Because I need the Notation value, present at the end in ENTITY line.






Similar Threads
Thread Thread Starter Forum Replies Last Post
copying a tag to output based on a query anboss XSLT 6 July 17th, 2008 11:10 AM
copying input data to another worksheet with code kwik10z Excel VBA 3 November 2nd, 2007 01:45 PM
Copying DOCTYPE madanshah16 XSLT 1 August 18th, 2007 12:23 PM
Chap 18 XML,error: multiple DOCTYPE declarations cJeffreywang BOOK: Beginning ASP 3.0 1 November 9th, 2005 03:54 PM
input:output file ct ASP.NET 1.0 and 1.1 Basics 1 September 27th, 2005 09:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.