Subject: RE: [xsl] a problem of mine.... From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Thu, 20 Dec 2001 10:17:44 -0000 |
Sorry I can't interpret "...." as a valid question. But whatever it is the answer is no. The namespace xmlns:xsl="http://www.w3.org/TR/WD-xsl" doesn't use Xpath it uses XSL Pattern Syntax. Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of dragonjia > Sent: 20 December 2001 09:49 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] a problem of mine.... > > > hello everyone: > i'm a new guy to this heavenly place. > > and now I have a problem with XSL, and wished to be helped. > > the code is below: I'm so wondering with XPath Language: if > .... can u give me a help?? > xml: > <?xml version="1.0" encoding="GB2312"?> > <!DOCTYPE clone SYSTEM "simple.dtd"> > <?xml:stylesheet type="text/xsl" href="simple.xsl"?> > <clone> > <rule> > <piece title="false" keyword="true">aaa</piece> > </rule> > <rule> > <piece title="false" keyword="true">bbb</piece> > </rule> > </clone> > > XSL: > > <?xsl version="1.0" encoding="GB2312"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" > xmlns="http://www.w3.org/TR/REC-html40" result-ns=""> > <xsl:template><xsl:apply-templates/></xsl:template> > > <xsl:template match = "/"> > <xsl:apply-templates select="clone"/> > </xsl:template> > > <xsl:template match = "clone"> > <xsl:for-each select="rule"> > <xsl:for-each select="piece"> > <xsl:value-of/> > <xsl:if test="{@title=true}"> > <input type=checkbox checked> > </xsl:if> > <xsl:if test="{@keyword=true}"> > <input type=checkbox checked> > </xsl:if> > </xsl:attribute> > </xsl:for-each> > <hr/> > </xsl:for-each> > </xsl:template> > </xsl:stylesheet> > > 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] a problem of mine...., Julian Reschke | Thread | RE: [xsl] a problem of mine...., dragonjia |
Re: [xsl] applying templates to an , David Carlisle | Date | Re: [xsl] re-ordering nodes, David Carlisle |
Month |