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

Greg Jones

Usenet Archive
Joined
Nov 19, 2003
Messages
3
Reaction score
0
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!
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
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.
 

Greg Jones

Usenet Archive
Joined
Nov 19, 2003
Messages
3
Reaction score
0
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top