|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Multiple forms
Hi all !! My XML-file which look something like this : <?xml version="1.0" encoding="UTF-8"?> <Book> <Chapter no="1"> <Title>Chapter 1</Title> <Heading>Heading for chapter 1</Heading> <Text>Here is the text</text> </Chapter> <Chapter no="2"> <Title>Chapter 2</Title> <Heading>Heading for chapter 2</Heading> <Text>Here is the text</text> </Chapter> <Chapter no="3"> <Title>Chapter 2</Title> <Heading>Heading for chapter 3</Heading> <Text>Here is the text</text> </Chapter> <Chapter no="4"> </Chapter> <Chapter no="5"> </Chapter> </Book> Is it posible to display only one chapter at a time in IE5, with a href-link to display next/previous chapter ?? I want to halt the processing after display chapter number X, and wait for user to klikk either next or previous.. Here is my XSL... <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="*"> <xsl:apply-templates/> </xsl:template> <xsl:template match="textnode()"> <xsl:value-of/> </xsl:template> <xsl:template match="/"> <HTML> <BODY> <xsl:apply-templates/> </BODY></HTML> </xsl:template> <xsl:template match="Chapter"> <xsl:apply-templates/> </xsl:template> <xsl:template match="Title"> <TITLE> <xsl:apply-templates/> </TITLE> </xsl:template> <xsl:template match="Heading"> <H3> <xsl:apply-templates/> </H3> </xsl:template> <xsl:template match="Text"> <H5> <xsl:apply-templates/> </H5> <A HREF="c:\xml\spm_text.xml">Previous chapter</A> <A HREF="c:\xml\spm_text.xml">Next chapter</A> </xsl:template> </xsl:stylesheet> Any ideas on how to transfer chapter no. back to the XML/XSL using this method, or if not possible at all, will be highly appriciated.. -=Staale=- Staale Eikebraaten Statistics Norway 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
|

Cart








