[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] generating sets of index pages
Greetings all, I have a need that's probably pretty common but I haven't been able to find anything that provides quite the solution I'm looking for. I need to generate a set of HTML pages that list sets of links to other HTML pages. These are the components to the system I've set up so far: -- a directory full of article XML files, text content tagged by category -- a directory of category XML files to match the categories tagged in the article files -- a filelist.xml file which simply lists all of the filenames of the article XML files, like this: <filelist> <file>articlenumberone.xml</file> <file>articlenumbertwo.xml</file> </filelist> -- a article_list.xsl file with the following template: ... for each file in filelist... <xsl:for-each select="document('filelist.xml')/filelist/file/text()"> <xsl:sort select="date" order="ascending" data-type="number"/> ... set variable for the actual filepath to the xml file in the file element... <xsl:variable name="xml_file_path"> <xsl:value-of select="'/opt/apache/htdocs/xml_articles/'"/> <xsl:value-of select="."/> </xsl:variable> ... if that article has a category tag that matches the "code" in the category xml document being put through the transformation... <xsl:if test="$code = document($xml_file_path)/article/category"> ... then print the headline of said xml file <xsl:value-of select="document($xml_file_path)/article/headline"/> </xsl:if> </xsl:for-each> ... so it generates an HTML file that prints out all of the headlines of the articles with categories that match the category code in the category XML doc... My problem is that there could be a lot of these and what I actually want is a set pages, the first of which prints the first 25 of these headlines, then links to another HTML page that prints the next 25... and so on and so on... Any suggestions on where to start? ___________________________________________________________ Marc Elliott HNW Digital, Inc. Digital Solutions for High-Net-Worth Marketers XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|