|
Subject: RE: [xsl] using xsl on two xml at the same time From: Johan Thorèn (EAB) <Johan.Thoren@xxxxxxxxxxxxxxx> Date: Thu, 10 Apr 2003 13:46:49 +0200 |
Hi
Im trying the follwing now
<xsl:template match="*">
<xsl:variable name="path" select="local-name()"/>
<xsl:variable name="doc2" select="document('test.xml')//*[name()=$path]"/>
<xsl:if test="./@value=$doc2/@value">
<xsl:value-of select="local-name()"/> OK
</xsl:if>
<xsl:if test="./@value!=$doc2/@value">
<xsl:value-of select="local-name()"/> not ok
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
But somehow I dont get an output for each local-name?
Do anyone now why?
Best regards
Johan
-----Original Message-----
From: Michael Kay [mailto:mhk@xxxxxxxxx]
Sent: den 9 april 2003 20:31
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] using xsl on two xml at the same time
> <xsl:variable name="doc2" select="document('d:\foo.xml')" />
The argument to the document() function must be a URI, so this should
fail. Though some processors might accept a Windows filename in place of
a URI, they are wrong to do so.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
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] using xsl on two xml at t, Michael Kay | Thread | RE: [xsl] using xsl on two xml at t, Rick Taylor |
| [xsl] match nodes based on given pa, Andrew Welch | Date | RE: [xsl] Newbie Q: Why are element, Michael Kay |
| Month |