473,396 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Copy an embedded DTD from source XML in XLST...

Hello,

This may be a simple question but difficult to search on since the
keywords are so generic.

Is there a way, in XSLT, to copy an embedded DTD from the source XML
to the target XML? Using 'match="processing-instruction()"' doesn't
work. I have been forced to simply output the DTD in the XSLT with
<xslt:text>.

Any ideas? Thanks!
Jul 20 '05 #1
3 1982


Greg Jones wrote:

This may be a simple question but difficult to search on since the
keywords are so generic.

Is there a way, in XSLT, to copy an embedded DTD from the source XML
to the target XML? Using 'match="processing-instruction()"' doesn't
work. I have been forced to simply output the DTD in the XSLT with
<xslt:text>.


As DOCTYPE nodes are not part of the XSLT/XPath data model you can't
copy (or otherwise process) them with XSLT.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2
I bet no one reading this is smart enough to write an XSLT extension
to handle embedded DTDs...

I dare you...

;-)

ps - thanks for the confirmation!

Martin Honnen <ma*******@yahoo.de> wrote in message news:<40********@olaf.komtel.net>...
Greg Jones wrote:

This may be a simple question but difficult to search on since the
keywords are so generic.

Is there a way, in XSLT, to copy an embedded DTD from the source XML
to the target XML? Using 'match="processing-instruction()"' doesn't
work. I have been forced to simply output the DTD in the XSLT with
<xslt:text>.


As DOCTYPE nodes are not part of the XSLT/XPath data model you can't
copy (or otherwise process) them with XSLT.

Jul 20 '05 #3
"Greg Jones" <gl*****@excite.com> wrote in message
news:a4*************************@posting.google.co m...
I bet no one reading this is smart enough to write an XSLT extension
to handle embedded DTDs...

I dare you...

;-)


SAXON has an extension for this:
http://saxon.sourceforge.net/saxon6....#saxon:doctype

<snip>
//Magnus
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pascal Sartoretti | last post by:
Hello, I am looking for a formal definition of XSLT. Either a DTD or an XML Schema, whatever. Is there such a thing ? There is for instance one for XML Schema itself at...
3
by: Hai Nguyen | last post by:
I would like to know after transforming my datatables which store in dataset into XML form. Now I want to save it into a file and also create a XLST file to read it. How can I do that? Would you...
6
by: Fan Ruo Xin | last post by:
I try to copy a table from production system (DB2 UDB EEE V7.2 + fixpak5) to the testing system (DB2 UDB V8.1 + fixpak4a). I moved the data from productions system by using the following steps:...
1
by: Chris Stephens | last post by:
The Spring 2004 copy of our Embedded Development Tools Newsletter is now available for downloading from our web site It includes information about...... An affordable USB protocol Analyser ...
7
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to...
3
by: Hai Nguyen | last post by:
Sorry I don't have code yet. I'm asking for solutions which can help me solve the problem. This is the first time I have to cope this situation, hence I'm clueless how to start. I would like to ask...
40
by: GTi | last post by:
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my...
0
by: YellowFin Announcements | last post by:
Whitepaper: "Yellowfin Reporting" enables Embedded Business Intelligence -------------------------------------------------------------------------------- Embedded reports are a standard...
1
by: dave_kajinsky | last post by:
Hello all, I would like to do something with xlst, perhaps I can get help from this group? Here it goes: I've got 2 files: an ascii file and a file that identifies tokens in the ascii file. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.