[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem with inline (embedded) xsl

Subject: Re: problem with inline (embedded) xsl
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 16 Oct 2002 21:44:30 +0200
jsp embedded xsl
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.

Regards,

Joerg

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"?>
<DATA_VALIDATION>
	<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="http://www.w3.org/1999/XSL/Transform">
		<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>
</DATA_VALIDATION>
===================================
Thanks!


Mac Rost


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.