Subject: Re: [xsl] many to one OR one to many? From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 1 Apr 2003 18:10:51 +0100 |
I'm wrestling with: whether I would go with multiple small xml files that I could compile into one output for the print, but would match the html files essentially OR one xml source file that matches the print, but can be output into multiple files (via some element in the structure that separates) for the web. It is possible to have both: have individual files for the bits then rather than pull in lots of files with xslt's document() function, just have a single file that pulls in everything in an appropriate structure. That way you can process as individual documents and at otehr times as one combined doc. <!DOCTYPE book [ <!ENTITY preface SYSTEM preface.xml"> <!ENTITY chapter1 SYSTEM something.xml"> ... ]><book> &preface; &chapter1; ... </book> or, if you prefer <!DOCTYPE book [ <!ENTITY preface SYSTEM preface.xml"> <!ENTITY sect1.1 SYSTEM something.xml"> ... ]> <book> <frontmatter> &preface; <frontmatter> <sect> <head>chapter1 </head> §1.1; §1.2; ... </sect> <sect> <head>chapter 2</head> §2.1; §2.2; ... </sect> </book> Anybody experienced one or both of these scenarios and have some pointers? I have seen some references to doing this, but not much more than that. I've tried all three approaches in different projects. Actually it doesn't seem to make much difference, some things are slightly easier than others depending on which choice you take, but issues surrounding this choice never seem to really dominate the project, ie making a diferent choice would have affected some of the processing tools, but really any choice can be made to work... One particular diference is cross linking, If you you use the first or third choice your input XML can use XML ID/IDREF linking as it's all one document, but if your source is separate xml documents you need to use some syntax for external linking. So it depends a bit on how much cross referencing between the parts you expect, and how much help from authoring tools you want for maintaining consistency of the references. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] many to one OR one to man, Robert P. J. Day | Thread | Re: [xsl] many to one OR one to man, Wendell Piez |
Re: [xsl] many to one OR one to man, Robert P. J. Day | Date | [xsl] Grouping and Subtotals, David Petersen |
Month |