Subject: RE: [xsl] One xsl and 2 XML's From: "Michael Kay" <mhk@xxxxxxxxx> Date: Mon, 25 Aug 2003 18:22:06 +0100 |
I don't understand what it means for an email id to "see" a section. Do you mean, you don't want the people with those email id's to see those sections? If so, that's a rather wider problem - need to understand where and when you are doing the transformation, how you are authenticating users, etc, etc. Michael Kay > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Archana Rao > Sent: 25 August 2003 16:20 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] One xsl and 2 XML's > > > 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 > 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, Archana Rao | Thread | [xsl] How to get nodes with maximum, Dipesh Khakhkhar |
Re: [xsl] jaxp vs xalan, Joseph Kesselman | Date | RE: [xsl] simple question regarding, Michael Kay |
Month |