So, lacking a XSL hack to get over this last hurdle, I'm going to roll back the proposed changes to the User Guide, and get the rest of the updated site posted. The only difference is that we would have links to the Tag Developer Guides and References along the side, instead of within the Users Guide. I think we can get it all together, and reuse the source, but there are other fish to fry right now ;-)
Ted Husted wrote: > So I'm having some trouble finding a good way to "include" various > well-formed data sources when building our HTMLs. > > I got it to work using entities like > > <!DOCTYPE xsl:stylesheet [ > <!ENTITY package SYSTEM "package-html.xml"> > ]> > > // ... > > &package; > > but then it chokes if I try to include the use XLM headers, so the > document can be used on its own. > > I've also tried this > > <xsl:variable name="package">package.xml</xsl:variable> > > // ... > > <xsl:template match="body"> > <xsl:apply-templates select="document($package)"/> > </xsl:template> > > which compiles when package.xml is well-formed, but just outputs the XSL > tags again. > > I'm still just "banging the rocks together" when it comes to XML/XLS. > Any ideas, hints? > > -- Ted Husted, Husted dot Com, Fairport NY USA. > -- Custom Software ~ Technical Services. > -- Tel +1 716 737-3463 > -- http://www.husted.com/about/struts/