generating multi-page output using xsl

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Waqas Ashraf

    generating multi-page output using xsl

    hi,
    I am a newbie at xml/xsl. I m trying to generate a book of papers
    marked up in xml. I have a simple xml file which includes the papers,
    and i have xsl stylesheet document which generates the output in the
    form of ONE xhtml page.
    I can generate the entire book as one xhtml file but I want to be able
    to generate each paper on a DIFFERENT page. how can i achieve that?
    My simple xml file looks as below:

    <book>
    <contents>
    <chapter file="sst96.xml " />
    <chapter file="sst98.xml " />
    </contents>
    </book>

    Im accessing the contents of paper xml file as below from witin my xsl
    stylesheet templates
    <xsl:value-of select="documen t(@file)/paper/header/title" />

    Basically, i want to be able to generate a table of contents with each
    paper's title as a link to a seperate xhtml page. But what do i have
    to do tell the xsl stylesheet to generate each chapter as a seperate
    xhtml page.

    Any help would be greatly appreciated.
    cheers :)
    Waqas Ashraf
  • Oleg Tkachenko

    #2
    Re: generating multi-page output using xsl

    Waqas Ashraf wrote:

    [color=blue]
    > Basically, i want to be able to generate a table of contents with each
    > paper's title as a link to a seperate xhtml page. But what do i have
    > to do tell the xsl stylesheet to generate each chapter as a seperate
    > xhtml page.[/color]

    Take a look at "Producing Multiple Outputs from an XSL Transformation"
    article at MSDN -
    Gain technical skills through documentation and training, earn certifications and connect with the community


    --
    Oleg Tkachenko

    Multiconn Technologies, Israel

    Comment

    • Alexander Schatten

      #3
      Re: generating multi-page output using xsl

      On Sat, 04 Oct 2003 23:59:07 -0700, Waqas Ashraf wrote:

      [color=blue]
      >
      > Basically, i want to be able to generate a table of contents with each
      > paper's title as a link to a seperate xhtml page. But what do i have to do
      > tell the xsl stylesheet to generate each chapter as a seperate xhtml page.
      >[/color]

      unfortunately this is not part of the XSLT specification, but there are
      several extensions in different XSLT processors. as you most likely use
      Apache Xalan, you can find the description about how this works in the
      apache Xalan documentation:




      Alex

      Comment

      Working...