[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Is there a way to tell if a node is an integer?
Subject: [xsl] Is there a way to tell if a node is an integer? From: "Allison Bloodworth" <abloodworth@xxxxxxxxxxxx> Date: Fri, 21 Apr 2006 18:31:05 -0700 |
Hi, Is there a way to tell if a node is an integer? I found this message: http://www.xslt.com/html/xsl-list/2004-10/msg00364.html where it appears to say you can use a statement like this: <xsl:if test="data($a) instance of xs:integer"> But this looks kind of strange, and maybe it is pseudo-code because it breaks my transform. <xsl:if test="./Locations/Location/Address/cbc:Room instance of xs:integer">Room is an integer</xsl:if> I want to be able to tell if the cbc:Room node here is an integer: <Address> <cbc:Postbox languageID="en-us" languageLocaleID="normalizedString">2105</cbc:Postbox> <cbc:Room languageID="en-us" languageLocaleID="normalizedString">2nd floor</cbc:Room> <cbc:StreetName languageID="en-us" languageLocaleID="normalizedString">Bancroft Way</cbc:StreetName> <cbc:CityName languageID="en-us" languageLocaleID="normalizedString">Berkeley</cbc:CityName> <cbc:PostalZone languageID="en-us" languageLocaleID="normalizedString">94710</cbc:PostalZone> <cbc:CountrySubentity languageID="en-us" languageLocaleID="normalizedString">California</cbc:CountrySubentity> <cac:Country> <cac:IdentificationCode languageID="en" codeListID="ISO3166-1" codeListVersionID="0.3" codeListSchemeURI="urn:oasis:names:specification:ubl:schema:xsd:CountryIdent ificationCode-1.0" codeListAgencyName="United Nations Economic Commission for Europe" codeListName="Country" codeListAgencyID="6">US</cac:IdentificationCode> </cac:Country> </Address> Thanks for any help you can give me! Allison Bloodworth Principal Administrative Analyst Technology Program Office University of California, Berkeley (415) 377-8243 abloodworth@xxxxxxxxxxxx
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Announce: New UK and US deliv, G. Ken Holman | Thread | RE: [xsl] Is there a way to tell if, Michael Kay |
Re: [xsl] Re: Merging multiple RSS , Jon Gorman | Date | RE: [xsl] Is there a way to tell if, cknell |
Month |