Subject: Re: [xsl] Large Document From: Markus Spath <mspath@xxxxxxxx> Date: Sun, 16 Mar 2003 09:12:06 +0100 |
Markus,
Not sure where I am supposed to look. I have the XML-SPY app, pro version. with stylesheet designer, but did not find anything on this subject. Also looked at the W3C spec for XSL, without success.
I can see naming issues. Maybe XSL can look in the XML file for certain element property names (i.e., chapterheading="Chapter 1."), etc.), and I can write code that maps section names to file names? Is that how it can work?
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect"> ...
<xsl:template match="sect1"> <!-- assuming sect1 elements have an id attribute --> <redirect:write select="concat(@id, '.html')"> <html> <body> <xsl:apply-templates /> </body> </html> </redirect:write> </xsl:template>
... </xsl:stylesheet>
Maybe you can point me to the best online source?
hth, Markus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Large Document, Jack Cane | Thread | [xsl] use of xsl:key in cross-refer, Xiaocun Xu |
Re: [xsl] Embedding XSL in JavaScri, Joe Fawcett | Date | Re: [xsl] finding nodes, jm |
Month |