xsl-list
[Top] [All Lists]

[xsl] Adding entity declarations to DOCTYPE in xml output

2019-02-25 15:15:02
Hello collective wisdom -

I would like to have several entity declarations in my output XML.  Here's what 
I currently have in my XSL:

<xsl:output
   method="xml"
   indent="yes"
   encoding="utf-8"
   exclude-result-prefixes="ns"
   omit-xml-declaration="yes"
   doctype-system="../ead_dtd/ead.dtd"
   doctype-public="+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival 
Description (EAD) Version 2002)//EN"/>


The output XML looks like this:

<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival 
Description (EAD) Version 2002)//EN" "../ead_dtd/ead.dtd">


I would like it to look like this:

<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival 
Description (EAD) Version 2002)//EN" "../ead_dtd/ead.dtd" [
<!ENTITY sua_name SYSTEM "sua_name.txt">
<!ENTITY sua_address SYSTEM "sua_address.txt">
<!ENTITY subjindex SYSTEM "sua_index.txt">
<!ENTITY summitref SYSTEM "summit_ref.txt">
]>


Is this doable with XSL 1.1?

Thanks --

Michele
+++++++++
Michele Combs | Lead Archivist
Special Collections Research Center
Syracuse University Libraries
222 Waverly Ave
Syracuse, New York 13244
t 315.443-2081 | e 
mrrothen(_at_)syr(_dot_)edu<mailto:mrrothen(_at_)syr(_dot_)edu> | w scrc.syr.edu
SYRACUSE UNIVERSITY
syr.edu
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<<attachment: winmail.dat>>

<Prev in Thread] Current Thread [Next in Thread>