[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

multiple transformations (pipelining) in one styleshee

Subject: multiple transformations (pipelining) in one stylesheet
From: Oliver Lietz <list@xxxxxxxxxxxxxx>
Date: Fri, 19 Oct 2007 17:08:10 +0200
 multiple transformations (pipelining) in one styleshee
Hello all,

this is my xml file:
<?xml version="1.0" encoding="utf-8"?>
    <title>Lorem ipsum</title>
    <para><acronym text="Lorem ipsum"/> dolor sit amet, ...</para>

and here my xsl file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" 
  <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes"/>

  <xsl:template match="@*|node()">
        <xsl:apply-templates select="@*|node()"/>

  <xsl:template match="acronym">
    <xsl:value-of select="@text"/>

  <xsl:template match="/">
      <xsl:value-of select="/file/content/para"/>


The second and third template alone with the first work as I expect but the 
result should look like this:

<p>Lorem ipsum dolor sit amet, ...</p>

So what's the best way to use the result of the first transformation (replace 
acronyms) as source for the second (make html)?
I searched the web and this list and tried different approaches but didn't 
succeed so far. Any hints? (using Saxon-B 8.9/j)


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.