[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] One xsl and 2 XML's


Subject: RE: [xsl] One xsl and 2 XML's
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 22 Aug 2003 23:43:14 +0100

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: [xsl] 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
Keywords