Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - XSL Transform by Data type [Thread Next] Re: XSL Transform by Data typeTo: NULL Date: 6/1/2005 4:16:00 PM you can use the following XPath expression to process those nodes separately: <xsl:if test="s:Schema/s:ElementType/s:AttributeType/s:datatype/@dt:type = 'dateTime'> ......process the node......... </xsl:if> thanks, swapna "Deck" <bldecker@i...> wrote in message news:%23vkAB0uZFHA.1448@T...... > This is a cross post. I originally posted this question in the dotnet.xml > group. > > Hello, > > I am trying to find a way to format an XML attribute using XSL. I want to > run the format based on the datatype of the attribute. > > I need to remove everything from the "-" in a attribute that is defined as > a > datetime. I cannot go by the actual attribute name I need to process > based > on data type. Any assistance would be greatly appreciated. > > <s:Schema id="RowsetSchema"> > <s:ElementType name="row" content="eltOnly" rs:updatable="true"> > ... more attributes just not showing them all... > <s:AttributeType name="BirthDate" rs:number="3"> > <s:datatype dt:type="dateTime" dt:maxlength="-1" > rs:maybenull="True" /> > </s:AttributeType> > </s:ElementType> > </s:Schema> > <rs:data> > <z:row BirthDate="1913-08-08T00:00:00.0000000-05:00" /> > <z:row BirthDate="1920-08-08T00:00:00.0000000-06:00" /> > <z:row BirthDate="1921-08-08T00:00:00.0000000-05:00" /> > <z:row BirthDate="1925-08-08T00:00:00.0000000-06:00" /> > <z:row BirthDate="1918-08-08T00:00:00.0000000-05:00" /> > <z:row BirthDate="1935-08-08T00:00:00.0000000-06:00" /> > </rs:data> > > > > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
