Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSL Transform by Data type

From: "Deck" <bldecker@---------.--->
To: NULL
Date: 6/1/2005 4:01:00 PM
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>






transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent