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

Re: Transforming entity declarations and entities

Subject: Re: Transforming entity declarations and entities
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 7 Dec 2005 11:58:09 +0000
fm validation off
On 12/7/05, Tommy Skarateppen <developer@xxxxxxxxxxxx> wrote:
> I have this file generated from Adobe FrameMaker:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE journal SYSTEM "mydtd.dtd" [
>
> <!-- Begin Document Specific Declarations -->
>
> <?Fm Validation Off?>
>
>
> <!ENTITY bkc1 SYSTEM "beta-8-2004-journalfront-1.ent">
> <!ENTITY bkc2 SYSTEM "beta-8-2004-2.ent">
> <!ENTITY bkc3 SYSTEM "beta-8-2004-journalback-3.ent">
>
> <!-- End Document Specific Declarations -->
>
> ]>
> <?Fm Book?><journal>&bkc1;&bkc2;&bkc3;</journal>
>
>
> The entity names are automatically generated from FrameMaker, but I want
> to have them changed, so the output file would look something like this:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE journal SYSTEM "mydtd.dtd" [
>
> <!-- Begin Document Specific Declarations -->
>
> <?Fm Validation Off?>
>
>
> <!ENTITY beta-8-2004-journalfront-1.ent SYSTEM
> "beta-8-2004-journalfront-1.ent"> <!ENTITY
> beta-8-2004-journalfront-2.ent SYSTEM "beta-8-2004-2.ent"> <!ENTITY
> beta-8-2004-journalfront-3.ent SYSTEM "beta-8-2004-journalback-3.ent">
>
> <!-- End Document Specific Declarations -->
>
> ]>
> <?Fm
> Book?><journal>&beta-8-2004-journalfront-1.ent;&beta-8-2004-journalfront
> -2.ent;&beta-8-2004-journalfront-3.ent;</journal>
>
> Is this possible to do in XSLT?

No, all entity definitions are resolved by the XML parser before XSLT
gets involved.  A text editor should give you the ability to do a
search and replace in files (UltraEdit for example).

cheers
andrew

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.