472,119 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 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 1935


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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Pascal Sartoretti | last post: by
3 posts views Thread by Hai Nguyen | last post: by
6 posts views Thread by Fan Ruo Xin | last post: by
1 post views Thread by Chris Stephens | last post: by
3 posts views Thread by Hai Nguyen | last post: by
40 posts views Thread by GTi | last post: by
1 post views Thread by dave_kajinsky | last post: by
reply views Thread by leo001 | last post: by

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.