XML.com: XML From the Inside Out

oreilly.comSafari Bookshelf.Conferences.
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Transclusion with XSLT 2.0
Subject: xslt 1
Date: 2003-07-11 19:38:29
From: Bob DuCharme
Response to: xslt 1

Right, you could put


<xsl:copy-of select="document('doc2.xml')/doc/p[@id='p2']"/>


in an XSLT 1.0 stylesheet, but to have (in effect) the input document itself specify what would be inserted into it, instead of having it hardcoded into the stylesheet that processes that document was what I was looking for. I qualify this with "in effect" because my way is still putting it in the stylesheet, but it's a special kind of stylesheet that can be treated as the input document.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First
  • xslt 1
    2003-07-14 08:01:30 David Carlisle [Reply]

    No, I meant that you could do _exactly_ the same in xslt 1: The simplified stylesheet module isn't a new XSLT2 featurre, its a new XSLT 2 name for
    the existing XSLT 1 feature
    "Literal Result Element as Stylesheet"


    David


Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938