[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Combining entity references into a single document

Subject: Re: Combining entity references into a single document
From: "Peter Flynn peter@xxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 3 Dec 2021 18:07:06 -0000
Re:  Combining entity references into a single document
On 03/12/2021 17:25, rick@xxxxxxxxxxxxxx wrote:> I have an XML document
generated from an Adobe FrameMaker book. It
> creates multiple XML files and refers to them with entities in the
> main XML file. Is there an XSLT 3 mechanism for combining everything
> into a single XML document? Any pointers would be appreciated.

As Michael describes, this is the job of a parser.

The old osgmlnorm utility (part of the opensp package) does exactly
this. Assuming your file is called main.xml, you can type

$ osgmlnorm -wxml sgmlxml.dec main.xml

The -wxml switches from SGML to XML, and you will need a copy of the
SGML Declaration for XML (there's a copy at
http://xml.silmaril.ie/downloads/sgmlxml.dec if you can't find one
elsewhere).

This will write to standard output, so you can redirect it into a file
or a subsequent process.

Downside: it IS a normalizer, so all REQUIRED attributes will be
included, but the output will be a single XML file.

Peter

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.