- From: Hugo Haas via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 23 Sep 2005 08:35:06 +0000
- To: public-ws-desc-eds@w3.org
Update of /sources/public/2002/ws/desc/wsdl20
In directory homer:/tmp/cvs-serv6668
Modified Files:
wsdldefs.xsl
Log Message:
Fixed detection of broken references
Index: wsdldefs.xsl
===================================================================
RCS file: /sources/public/2002/ws/desc/wsdl20/wsdldefs.xsl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** wsdldefs.xsl 4 Aug 2005 20:44:49 -0000 1.9
--- wsdldefs.xsl 23 Sep 2005 08:35:04 -0000 1.10
***************
*** 86,95 ****
</xsl:call-template>
</xsl:variable>
- <xsl:if test="$src = '' and not(id($anchor))">
- <xsl:message>
- <xsl:text>Wrong component reference: </xsl:text>
- <xsl:value-of select="$anchor"/>
- </xsl:message>
- </xsl:if>
<a href="{$src}#{$anchor}">
<xsl:value-of select="$component" />
--- 86,89 ----
***************
*** 105,108 ****
--- 99,108 ----
<xsl:param name="component"/>
<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/compdef[@comp=$component]/../@src"/>
+ <xsl:if test="string-length($src) = 0">
+ <xsl:message>
+ <xsl:text>Wrong component reference: </xsl:text>
+ <xsl:value-of select="$component"/>
+ </xsl:message>
+ </xsl:if>
<xsl:call-template name="map-src">
<xsl:with-param name="src" select="$src"/>
***************
*** 191,200 ****
</xsl:call-template>
</xsl:variable>
- <xsl:if test="$src = '' and not(id($anchor))">
- <xsl:message>
- <xsl:text>Wrong property reference: </xsl:text>
- <xsl:value-of select="$anchor"/>
- </xsl:message>
- </xsl:if>
<xsl:text>{</xsl:text>
<a href="{$src}#{$anchor}">
--- 191,194 ----
***************
*** 208,211 ****
--- 202,213 ----
<xsl:param name="property" />
<xsl:variable name="src" select="document('wsdl20-defs.xml')/defs/spec/propdef[@comp=$component][@prop=$property]/../@src"/>
+ <xsl:if test="string-length($src) = 0">
+ <xsl:message>
+ <xsl:text>Wrong property reference: </xsl:text>
+ <xsl:value-of select="$component"/>
+ <xsl:text> / </xsl:text>
+ <xsl:value-of select="$property"/>
+ </xsl:message>
+ </xsl:if>
<xsl:call-template name="map-src">
<xsl:with-param name="src" select="$src"/>
Received on Friday, 23 September 2005 08:35:10 UTC