This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: after use of document(): selecting parts of the obtained node-set


Hello Ralph,


> <xsl:variable name="itn" select="document(itn.xml)" />

the problem is here: You select the string of a node <itn.xml> and the
document with this string will be stored. Because the string is empty, it
should be the stylesheet, which is stored in your variable. What you must
do, is to add single quotes around your filename: document('itn.xml')

> <xsl:apply-templates select="$itn/logo" />

Then you can access the nodes with select="$itn/itn/logo". Don't forget the
document element. If you change your variable itn to
"document('itn.xml')/itn" (it makes always sense in my eys) you can use your
above version.

> <xsl:apply-templates select="$itn//logo">.

This should work in every case, but, you know, it's not very good.

Regards,

Joerg


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]