RE: RE: Question about model in transforms

"Schnitzer, Jeff" <[email protected]>
Newsgroups gmane.comp.web.maverick.general
Message-ID <[email protected]>
Assuming you're using XSL, just copy the entire input source somewhere
in the output document.

<xsl:template match="/">
  <blah>
    <moreblah>...</moreblah>
    <originalblah>
      <xsl:copy-of select="/*"/>
    </originalblah>
  </blah>
</xsl:template>

My XSL is a little rusty, but that is the basic idea.

Jeff Schnitzer
[email protected]

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Sunday, June 22, 2003 2:06 PM
> To: [email protected]
> Subject: RE: RE: [Mav-user] Question about model in transforms
> 
> How would i explicitly pass it?  Sorry, i'm a total newbie to Mav.  So
far
> I'm loving it though!
> 
> Travis
> 
> 
> 
> ---- Original Message ----
> From: "Schnitzer, Jeff" <[email protected]>
> Sent: 2003-06-21
> To: [email protected]
> Subject: RE: [Mav-user] Question about model in transforms
> 
> > From: [email protected] [mailto:[email protected]]
> >
> > Is it possible to access the model in a transform, like in the
> friendbook
> > example, could i access the model in the trim?
> 
> Right now, the answer is "not consistently".  If you're using document
> views (and transforms) it's pretty easy, but if you're using XSLT the
> data is not available (unless you explicitly pass it through).
> 
> I'm not really sure how to make it available, either.  I don't think
> it's possible to set the model as a param, and trying to combine the
> original model into the input XML for the transform steps sounds
> perilous.
> 
> I'm open to suggestions, but it seems to me like your best bet is to
> explicitly pass the original model through.
> 
> Jeff Schnitzer
> [email protected]
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting
Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> [INVALID FOOTER]
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting
Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> [INVALID FOOTER]



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
[INVALID FOOTER]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.