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

Re: Confused with current context

Subject: Re: Confused with current context
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 31 Aug 2000 12:55:57 GMT
email datatype
something like this perhaps?

bash-2.01$ xt ado.xml ado2.xsl
<?xml version="1.0" encoding="utf-8"?>
<firstname datatype="string" maxlength="20">Lee</firstname>
<surname datatype="string" maxlength="30">Barwick</surname>
<email datatype="string" maxlength="60">lee.barwick@xxxxxxxxxxxxxxx</email>
<extension datatype="string" maxlength="4">05</extension>
<hols datatype="int" maxlength="4">14</hols>

<xsl:stylesheet xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" 
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
exclude-result-prefixes="dt rs s z"

<xsl:output indent="yes"/>

	<xsl:template match="/">
			<xsl:apply-templates select="xml/rs:data/z:row/@*"/>

	<xsl:template match="@*">
		<xsl:element name="{name()}">
		<xsl:variable name="fieldname" select="name()"/>
                <xsl:apply-templates select="
           <xsl:value-of select="."/>

<xsl:template match="@dt:*"/>

<xsl:template match="@dt:type">
  <xsl:attribute name="datatype">
    <xsl:value-of select="."/>

<xsl:template match="@dt:maxLength">
  <xsl:attribute name="maxlength">
    <xsl:value-of select="."/>


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

Current Thread


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.
First Name
Last Name
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.