|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Transforming entity declarations and entities
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








