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

Re: Problem with "value-of" tags in XSLT to be placed

Subject: Re: Problem with "value-of" tags in XSLT to be placed at desired location in Text Output
From: "Jagdishwar B" <jagdishwar.beemanati@xxxxxxxxx>
Date: Mon, 22 May 2006 22:07:25 +0200
os.name values
there are several changes required in your xslt,
e.g.
       <xsl:template match="inventory/server"> and not
match="domain-name/server"

try the xsl below:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:output method="text" indent="yes"/>
       <xsl:template match="inventory/server">
 insert into server (

'oracleAppVersion',java-version,java-vendor,java-vm-version,java-vm-vendor,ja
va-vm-name,os-arch,os-name,os-version
) values (
  <xsl:value-of select="comp/weblogic-version"/>,
  <xsl:value-of select="java/version"/>,
  <xsl:value-of select="java/vendor"/>,
  <xsl:value-of select="java/vm/version"/>,
  <xsl:value-of select="java/vm/vendor"/>,
  <xsl:value-of select="java/vm/name"/>,
  <xsl:value-of select="os/arch"/>,
  <xsl:value-of select="os/name"/>,
  <xsl:value-of select="os/version"/>
 );
</xsl:template>
<xsl:template match="jdbc-data">
 insert into jdbc-data (

'oracleAppVersion',java-version,java-vendor,java-vm-version,java-vm-vendor,ja
va-vm-name,os-arch,os-name,os-version
) values (
  <xsl:value-of select="datasource/driver-name"/>,
      <xsl:value-of
select="datasource/database-product-version"/>,
          <xsl:value-of
select="datasource/database-product-name"/>,

 );
</xsl:template>
</xsl:stylesheet>


--


Jagdishwar B.

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.