469,270 Members | 1,026 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

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 1872


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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.