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

RE: One xsl and 2 XML's

Subject: RE: One xsl and 2 XML's
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 22 Aug 2003 23:43:14 +0100
do xsl from 2 xml
Yes, it's easy to write a stylesheet that processes two source documents
(use the document() function).

I'm not sure what you mean by your notion of "hiding", if you want more
detailed help you will need to show us an example. Perhaps you mean that
doc2 contains identifiers of elements that are to be excluded while
copying the contents of doc1. You can do this like:

<xsl:variable name="exclude" select="document('doc2.xml')/*/record"/>

<xsl:template match="/">
  <out>
    <xsl:copy-of select="*/record[not(@id = $exclude/@id)]"/>
  </out>
</xsl:template>

But I may have guessed completely wrongly what you are trying to do.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Archana Rao
> Sent: 22 August 2003 19:04
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  One xsl and 2 XML's
> 
> 
> Hello everybody,
> 
> I am new to XML and XSL
> 
> I am planning to do somewhat like this. 
> 
> I have an XML (# 1) and XSL that goes with it, both
> work fine together. Now i want to write another XML(#
> 2) that has user information like email id's in it, in
> my XML # 1 i have certain sections that i want to hide
> from the email id's specified in XML 2, How can this
> be done??
> 
> Let me know if its doable.
> 
> Thanks,
> Archana
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design 
> software http://sitebuilder.yahoo.com
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.