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

Re: Root Node and apply-templates

Subject: Re: Root Node and apply-templates
From: "Oscar" <ocaraballo@xxxxxxxxxxxxx>
Date: Tue, 8 Apr 2003 09:21:10 +0200
xsl template root node
I am using msxml3.0,  the encoding is ISO-8859-1 in xml and xslt and do the
render process in the Browser ("temaplate" is a missprint in my copy-paste),
with the first xslt, the result of render process is a blank page, it seems
the processor cant find the node.

The second xslt prints a pretty html page but i dont know why first not.

----- Original Message -----
From: "Michael Kay" <mhk@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, April 07, 2003 8:46 PM
Subject: RE:  Fw: Root Node and apply-templates


> I think your two stylesheets are 100% equivalent, so there's something
> odd going on here.
>
> When you say "it doesn't work", what precisely do you mean?
>
> Michael Kay
> Software AG
> home: Michael.H.Kay@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Oscar
> > Sent: 07 April 2003 15:54
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject:  Fw: Root Node and apply-templates
> >
> >
> >
> > I dont know if this is a very simple question but im a bit confused:
> >
> > I have this xml:
> >
> >
> > <?xml version="1.0" encoding="ISO-8859-1" ?><?xml:stylesheet
> > type="text/xsl"
> > href="/BKM/BKMDesarrollo/admin/showSrchTemplate.xsl"?>
> >
> > <ROOT CgiWebXcon="/cgi-bin/BKM/BKMDesarrollo/idccgi/X8102/ID25880"
> > idioma="admproperties_es_ES.xml" system="SAMP" >
> > <FIELDS>
> > <FIELD tipo="0" sname="DOCN" >BRS Assigned Accession Number</FIELD>
> > <FIELD tipo="0" sname="TI" >Title</FIELD>
> > <FIELD tipo="0" sname="TX" activated="true" >Texto</FIELD>
> > <FIELD tipo="0" sname="CR" activated="true" >Referencias</FIELD>
> > <FIELD tipo="0" sname="SHRT" activated="true" >DOCN</FIELD></FIELDS>
> > </ROOT>
> >
> > and i do somethign like this:
> >
> > <xsl:template match="/">
> >     <xsl:apply-templates select="/ROOT/FIELDS/FIELD"/>
> > </xsl:temaplate>
> >
> > <xsl:template match="FIELD">
> >     display data
> > </xsl:template>
> >
> >
> > but this doesnt work,  otherwise this code works:
> >
> > <xsl:template match="/">
> >     <xsl:call-template name="test"/>
> > </xsl:temaplate>
> >
> > <xsl:template name="test">
> >     <xsl:apply-templates select="/ROOT/FIELDS/FIELD"/>
> > </xsl:temaplate>
> >
> > <xsl:template match="FIELD">
> >     display data
> > </xsl:template>
> >
> >
> >
> > why?
> >
> >
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>



 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.