RE: [xsl] problem with inline (embedded) xsl

Subject: RE: [xsl] problem with inline (embedded) xsl
From: "Mac Rost" <mrost@xxxxxxxxxxxxx>
Date: Wed, 16 Oct 2002 15:54:47 -0500
Well, thanks for the info.... it's kind of disappointing in a way... in XSLT by Michael Kay, he has an example that I followed and, I guess IE just blows in some things. :-)

Joerg wrote:
I think there is no browser, who understands inline XSLT. Even if you 
see the headers, they aren't there because of any processing, but 
because the table is described in the XML. You will see this, if you 
change the match pattern from "/" to "/foobar": looks like before.



Mac Rost wrote:
> All:
> The following code will only display the table headers, but when I use a separate xml and xsl file, then the transformation is complete. Any ideas?
> ==================================
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="#trans"?>
> 	<row DataValidationID="1" Name="HotelCommissionType" Description="Flag indicating the type of hotel commission payments from the supplier." VersionLock="1" />
> 	<row DataValidationID="2" Name="PropertyType" Description="The type of property.  For example Hotel, Condo." VersionLock="1" />
> 	<row DataValidationID="3" Name="ShippingMethod" Description="The type of shipping method used to send out mail" VersionLock="1" />
> 	<row DataValidationID="4" Name="CustomerAddressType" Description="Flag indicating the type of a customer address." VersionLock="1" />
> 	<row DataValidationID="5" Name="HotelNoteType" Description="Manages a list of valid hotel note types that can be used for hotel notes.  See the field:  HOTEL_NOTE.Type" VersionLock="1" />
> 	<row DataValidationID="6" Name="SubTypeCode" Description="Manages a list of valid subTypeCodes for the subtype of the hotel note.  See the field: HotelNote.SubTypeCode " VersionLock="1" />
> 	<row DataValidationID="7" Name="Status" Description="Manages a list of valid status codes for the tables itinerary, hotel_confirmation, car_confirmation, air_confirmation." VersionLock="1" />
> 	<row DataValidationID="8" Name="ItineraryNoteCategory" Description="Manages a list of valid categories for the field ItineraryNote.Category" VersionLock="1" />
> 	<row DataValidationID="9" Name="RateFrequencyCode" Description="Manages a list of rate frequencies to which the supplied rate refers." VersionLock="1" />
> 	<row DataValidationID="10" Name="SmokingPreference" Description="Manages a list of smoking preferences for hotel rooms" VersionLock="1" />
> 	<row DataValidationID="11" Name="ConfirmationExtraID" Description="Valid values for Confirmation Extra." VersionLock="1" />
> 	<row DataValidationID="12" Name="LineOfBusinessID" Description="Line of Business is like air, car, hotel, etc" VersionLock="1" />
> 	<row DataValidationID="13" Name="FunctionID" Description="Function is the type of request the user is making on a LOB" VersionLock="1" />
> 	<row DataValidationID="14" Name="SourceTechnologyID" Description="This is the context in which a request originates such as JSP" VersionLock="1" />
> 	<row DataValidationID="15" Name="CategoryID" Description="Manages valid Cateforyies for the field EXCEPTION_CONDITION.CategoryID" VersionLock="1" />
> 	<row DataValidationID="16" Name="HandlingID" Description="Manages valid Cateforyies for the field EXCEPTION_CONDITION.HandlingID" VersionLock="1" />
> 	<xsl:stylesheet version="1.0" id="trans" xmlns:xsl="";>
> 		<xsl:output method="html" />
> 		<xsl:template match="xsl:*" />
> 		<xsl:template match="/">
> 			<html>
> 				<head>
> 					<title>Data Validation</title>
> 				</head>
> 				<body>
> 					<table bgcolor="#778899" width="100%" border="2">
> 						<th>Data Validation ID</th>
> 						<th>Name</th>
> 						<th>Description</th>
> 						<th>Version Lock</th>
> 						<xsl:call-template name="display1" />
> 					</table>
> 				</body>
> 			</html>
> 		</xsl:template>
> 		<xsl:template name="display1">
> 			<xsl:for-each select="//row">
> 				<tr>
> 					<td>
> 						<xsl:value-of select="@DataValidationID" />
> 					</td>
> 					<td>
> 						<xsl:value-of select="@Name" />
> 					</td>
> 					<td>
> 						<xsl:value-of select="@Description" />
> 					</td>
> 					<td>
> 						<xsl:value-of select="@VersionLock" />
> 					</td>
> 				</tr>
> 			</xsl:for-each>
> 		</xsl:template>
> 	</xsl:stylesheet>
> ===================================
> Thanks!
> Mac Rost

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread