Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Begginer question: template for a data type Begginer question: template for a data typeTo: NULL Date: 4/10/2006 10:47:00 AM
Hi. I want to write a template to be applyed for a data type instead
that for a pattern.
for example, I have this Schema:
<xs:complexType name="person">
<xs:sequence>
<xs:element name="first_name"/>
...
</xs:sequence>
</xs:complexType>
...
<xs:element name="father" type="person"/>
<xs:element name="mother" type="person"/>
...
And I want to write an XSL document that transform every person to the
same HTML template.
I know how to do the following:
<xsl:template patter="father"> XXXX </xsl:template>
<xsl:template patter="mother"> XXXX </xsl:template>
But I would have to write XXXX for every "person"
Any suggestions?
Thanks.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
