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

All relavent nodes not printed out...

Subject: All relavent nodes not printed out...
From: jayanti <jayanti@xxxxxxxxxxxxx>
Date: Wed, 22 Oct 2003 15:06:14 -0700
relavent
Hi,
 My xml is listed below.

<?xml version = '1.0' encoding = 'utf-8'?>
  <DB1xEV-DO>
  <typedef .....
.......

  </typedef>
   <objType name="Cell" label="BTS" ReleaseIntroduced="1"
ReleaseChanged="7">
      <Description>This is the description</Description>
      <Attribute name="CellSiteId" label="BTS ID" ReleaseIntroduced="1"
ReleaseChanged="7">
        ...
      </Attribute>
      <Attribute name="btsName" label="BTS Name" ReleaseIntroduced="7">

      ....
     </Attribute>
      <Attribute name="constantPilot" label="Constant Pilot Mode"
ReleaseIntroduced="1">
......
      </Attribute>
      <Attribute name="idleModeGain" label="Idle Mode Gain"
ReleaseIntroduced="1">
         <descr/>
      </Attribute>
   </objType>
</DB1xEV-DO>

-- xsl is below---

<?xml version="1.0"?>
<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output  omit-xml-declaration="yes" indent="no"
encoding="iso-8859-1"   />
<xsl:template match="objType">
      <xsl:value-of select="@name"/>,<xsl:value-of
select="@ReleaseIntroduced"/>,<xsl:value-of select="@ReleaseChanged"/>
  </xsl:template>

<xsl:template match="Attribute">
      <xsl:value-of select="@name"/>, <xsl:value-of
select="@ReleaseIntroduced"/>, <xsl:value-of select="@ReleaseChanged"/
>
      <xsl:value-of select="."/>
  </xsl:template>

  <xsl:template
    match="*[self::objType or self::Attribute]
                  [not(@ReleaseChanged = 7
                      or
                       @ReleaseIntroduced = 7
                       )
                   ] "/>
</xsl:stylesheet>


My problem is that the above xsl produces only the objType attributes in

the output not the attributes. Why is that ? and how can I get an output

that looks like the following:
objType = Cell
AttributeName = CellSiteID
AttributeName =  BtsName
.etc...

thanks in advance
j


 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.