Subject: Re: [xsl] xml include From: "Zafer Bayraktar" <z-b@xxxxxxxx> Date: Wed, 11 Apr 2001 13:40:33 +0200 |
yes, the structure you wrote is true ... ----- Original Message ----- From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Wednesday, April 11, 2001 1:22 PM Subject: RE: [xsl] xml include > I'd get rid of the // in your select. They're not needed. Are title and > author first child nodes? > > <root> > <title /> > <author /> > </root> > > Daniel. > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Zafer Bayraktar > Sent: 11 April 2001 12:02 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] xml include > > > Hi, > I have two xml files, one of them is included in other: > > <?xml version="1.0"?> > <document xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"> > <xinclude:include href="xml.xml"/> > </document> > > And I use this xsl to transform: > <?xml version="1.0"?> > <xsl:stylesheet version='1.0' > xmlns:xsl='http://www.w3.org/1999/XSL/Transform' > > <xsl:output method="html" /> > <xsl:template match="/"> > <H1><xsl:value-of select="//title"/></H1> > <H2><xsl:value-of select="//author"/></H2> > </xsl:template> > </xsl:stylesheet> > > (xml.xml contains title and author tags) > > The problem is that xsl cannot read title and author tags ... ? > > > 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xml include, Daniel Newman | Thread | Re: [xsl] xml include, David Carlisle |
Re: [xsl] xml include, David Carlisle | Date | Re: [xsl] xml include, Zafer Bayraktar |
Month |