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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Archana Rao
Sent: 25 August 2003 16:20
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_dot_)aaa(_at_)com,
bbb(_dot_)bbb(_at_)com(_dot_)(_dot_)(_dot_)(_dot_)</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(_at_)mhk(_dot_)me(_dot_)uk> 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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On
Behalf Of
Archana Rao
Sent: 22 August 2003 19:04
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
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