Subject: [xsl] sorry, I got it was Re: [xsl] ordering problem generating xslt from xsd From: bry@xxxxxxxxxx Date: Fri, 20 Aug 2004 11:18:02 +0200 |
brain-slippage, this is because of getting multiple xsd inputs via a filelist. Quoting bry@xxxxxxxxxx: > I need an extra pair of eyes here, this doesn't seem to be right, given the > following xslt fragment using msxsl: > > <xsl:template match="xsd:schema"> > <xsl:apply-templates > select="xsd:element/xsd:annotation/xsd:documentation"/> > <xsl:apply-templates> > <xsl:with-param name="nmspc" > select="@targetNamespace"/> > </xsl:apply-templates> > </xsl:template> > > <xsl:template match="xsd:annotation"/> > <xsl:template match="xsd:documentation"> > <oiodoc:documentation id="{ancestor::xsd:element/@name}"> > <xsl:apply-templates mode="copier"/> > </oiodoc:documentation> > </xsl:template> > <xsl:template match="*" mode="copier"> > <xsl:copy><xsl:copy-of select="@*"/> > <xsl:apply-templates mode="copier"/> > </xsl:copy> > < /xsl:template> > > <xsl:template match="xsd:element[parent::xsd:schema]"> > <xsl:param name="nmspc"/> > <xsl:param name="nmspc-prefix" > select="substring-before(name(msxml:node-set($usednamespaces)/namespaces/*[.=$nmspc]),':')"/> > > <txs:template match="{concat($nmspc-prefix,':',@name)}"> > </txs:template> > </xsl:template> > > I get the following out of an xsd: > > <oiodoc:documentation id="BirthDate">Declares on which date an > individuals > birth has taken place, and are consecutive used to declare an individuals > age. > </oiodoc:documentation> > <txs:template match="n16:BirthDate" /> > <oiodoc:documentation id="BuildingIdentifier">Unique number representing > a > building/buildings which are part of a property. The number consists of > three > numerics. > </oiodoc:documentation> > <txs:template match="n16:BuildingIdentifier" /> > > when what I would expect is the following: > > <oiodoc:documentation id="BirthDate">Declares on which date an > individuals > birth has taken place, and are consecutive used to declare an individuals > age. > </oiodoc:documentation> > <oiodoc:documentation id="BuildingIdentifier">Unique number representing > a > building/buildings which are part of a property. The number consists of > three > numerics. > </oiodoc:documentation> > <txs:template match="n16:BuildingIdentifier" /> > <txs:template match="n16:BirthDate" />
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] ordering problem generating x, bry | Thread | Re: [xsl] ordering problem generati, David Carlisle |
[xsl] ordering problem generating x, bry | Date | Re: [xsl] ordering problem generati, David Carlisle |
Month |