RE: [xsl] Where is the attribute?

Subject: RE: [xsl] Where is the attribute?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 17:17:23 -0000
Perhaps $xsd-match-node is not the xs:element element, but a document node
that's the parent of the xs:element element. Certainly if this were the case
it would explain your output.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Robert Soesemann [mailto:rsoesemann@xxxxxxxxxxx] 
> Sent: 17 December 2004 16:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Where is the attribute?
> 
> In my xsl I have this fragment. In the ouput the second line does not
> get any output.
> What am I doing wrong?
> 
> XSL:
> ----
> ...
> <NODE><xsl:copy-of select="$xsd-match-node"/></NODE>
> <MIN><xsl:value-of select="$xsd-match-node/@minOccurs"/></MIN> 
> ...
> 
> XML:
> ----
> - <NODE xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>   	<xs:element name="company" type="xs:string" minOccurs="1" /> 
>   </NODE>
>   <MIN xmlns:xs="http://www.w3.org/2001/XMLSchema"; /> 
> <<-------- Why is
> there no '1'???

Current Thread