Subject: RE: MSXML Namespace From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx> Date: Fri, 31 Mar 2000 15:11:53 -0800 |
xmlinst.exe is placed in your system folder along with mxsml3.dll. IE5 XSL has no built-in templates, so you need to be careful about the root pattern. Try this: <xsl:template match="/"> <html> <xsl:apply-templates select="a/b"/> </html> </xsl:template> - Jonathan Marsh Microsoft > -----Original Message----- > From: Selva, Francis [mailto:Francis.Selva@xxxxxxxxxxxxxxx] > Sent: Friday, March 31, 2000 2:54 PM > To: 'xsl-list@xxxxxxxxxxxxxxxx' > Subject: MSXML Namespace > > > Thanx Jonathan,but from where can I install xmlinst.exe?. and > can u please > tell me why this one is not working for MSXML namespace? > > If I have an xml like > > <a> > <b val1="c" val2="d"> > </b> > </a> > > Why this xsl is not giving me any results? > > <xsl:template match="a"> > <html> > <xsl:apply-templates select="b"/> > </html> > </xsl:template> > > <xsl:template match="b"> > <font color="blue"> > <xsl:value-of select="@val1"/></font> > </xsl:template> > > If this is not the right way,how can I do this? > > Francis > > > > > > -----Original Message----- > > From: Jonathan Marsh [mailto:jmarsh@xxxxxxxxxxxxx] > > Sent: Friday, March 31, 2000 10:41 PM > > To: 'xsl-list@xxxxxxxxxxxxxxxx' > > Subject: RE: xsl:import help > > > > > > This should work in IE5 after the following modifications: > > > > 1) The MSXML tech preview is installed from > > http://msdn.microsoft.com/xml > > 2) The replacement utility xmlinst.exe is run so that IE5 > > will use the new > > MSXML. > > 3) The required version="1.0" is added to the stylesheets. > > 4) The <xsl:import> is replaced with <xsl:include>. Based on > > your sample > > files, these are equivalent. MSXML doesn't support > <xsl:import> yet. > > > > - Jonathan Marsh > > Microsoft > > > > > > > -----Original Message----- > > > From: Selva, Francis [mailto:Francis.Selva@xxxxxxxxxxxxxxx] > > > Sent: Friday, March 31, 2000 10:30 AM > > > To: 'xsl-list@xxxxxxxxxxxxxxxx' > > > Subject: RE: xsl:import help > > > > > > > > > > > > > > > > > > > > > > > > Is it possible for me access the xsl:variable values > > > > yes it is, couldn't you just have tried it? > > > > > > I tried it as u can see from the example but for some reason > > > its not showing > > > in IE5 if I import the xsl file with xsl:variables.But if > I give the > > > xsl:variable in one file,I mean there is only one xsl > > > file,it's working. > > > > > > > > > > > > > > <xsl:template match="/"> > > > > <xsl:for-each select="Login"> > > > > > > > > why the for-each here? there can only ever be one child of > > > > the root node > > > > it would be simpler just to go > > > > > > > > <xsl:template match="Login"> > > > > > > Well I have just started exploring.So thanx for the tip. > > > > > > > > > > > > > > > > > > > Can I use the same namespace for accessing the > attribute values? > > > > I didn't understand this question, you are not using > > > > namespaces in your > > > > input or output documents, clearly you have to use the xsl > > > > namespace in > > > > the xsl files, otherwise they are not xsl. > > > > > > David,I guess Im using the xsl namespace.Unless if I havent > > understood > > > totally what is namespace,I guess Im right.Please let me know > > > why u think > > > so?.This is the code again > > > > > > <?xml version="1.0"?> > > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > <xsl:import href="a.xsl"/> > > > <xsl:template match="Login"> <!-- Changed it > > > according to ur tip > > > David :) --> > > > <xsl:for-each select="Loginscreen"> > > > <xsl:value-of select="$text1"/> > > > <xsl:value-of select="$text2"/> > > > <xsl:value-of select="@username"/> > > > <!-- From the XML > > > file --> > > > <xsl:value-of select="$text3"/> > > > </xsl:for-each> > > > </xsl:template> > > > </xsl:stylesheet> > > > > > > > > > My question was if I give this namespace URI,then the > > > attribute @username > > > never shows up.But if I use 2 different namespaces,one for > > > importing xsl > > > file variables and other one for attribute from xml,the > > > attribute is showing > > > in IE5.The changed code will be > > > > > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" > > > xmlns:xslnew="http://www.w3.org/1999/XSL/Transform"> > > > <xslnew:import href="a.xsl"/> > > > <xsl:import href="a.xsl"/> > > > <xsl:template match="Login"> > > > <xsl:for-each select="Loginscreen"> > > > <xslnew:value-of select="$text1"/> > > > <xslnew:value-of select="$text2"/> > > > <xsl:value-of select="@username"/> > > > <!-- From the XML > > > file --> > > > <xslnew:value-of select="$text3"/> > > > </xsl:for-each> > > > </xsl:template> > > > </xsl:stylesheet> > > > > > > > > > > > > why is that?.Is it something to do with IE5?. > > > > > > Francis > > > > > > > > > XSL-List info and archive: > > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > 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 -> |
---|---|---|
MSXML Namespace, Selva, Francis | Thread | RE: MSXML Namespace, Narahari, Sateesh |
Re: XML+XSL= XML only?, Nadig, Balu S | Date | RE: MSXML Namespace, Narahari, Sateesh |
Month |