Subject: Re: [xsl] problem with inline (embedded) xsl From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 16 Oct 2002 21:44:30 +0200 |
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
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] problem with inline (embedded, Mac Rost | Thread | RE: [xsl] problem with inline (embe, Mac Rost |
Re: [xsl] Re: Depth of an XML file , Padmapriya Kandhadai | Date | [xsl] Trouble matching only element, Bennett Smith |
Month |