[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: Archana Rao <archana_heroor@xxxxxxxxx> Date: Mon, 25 Aug 2003 08:19:36 -0700 (PDT) |
Thanks for your reply, Let me explain my problem in detail XML#1 <?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="trial.xsl"?> <DATA> <SECTION> <PROPERTY> <HIDDEN>yes</HIDDEN> ....... </PROPERTY> </SECTION> <SECTION> <PROPERTY> <HIDDEN>no</HIDDEN> ....... </PROPERTY> </SECTION> </DATA> ***************************************************** XML #2 <USERINFO> <EMAILIDS>aaa.aaa@com, bbb.bbb@xxxxxxx</EMAILIDS> </USERINFO> ********************************************** I don't want the email id's in XML #2 to see the hidden sections(<HIDDEN>yes</HIDDEN>) of xml#1. How can this be done in my XSL? TIA, Archana --- Michael Kay <mhk@xxxxxxxxx> wrote: > 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 > __________________________________ 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] One xsl and 2 XML's, Michael Kay | Thread | RE: [xsl] One xsl and 2 XML's, Michael Kay |
RE: [xsl] Incrementing a Global var, Michael Kay | Date | [xsl] Merging two xml files, Mulberry Technologie |
Month |