|
Subject: RE: [xsl] processing-instruction() From: "Jiang, Peiyun" <Peiyun.Jiang@xxxxxx> Date: Wed, 31 Jul 2002 10:54:08 -0400 |
I added the priority, but I still get the PIs in output. Does this have
anything to do with the processor I'm using (xalan)?
Peiyun
<xsl:template match="/">
<equations>
<xsl:for-each select="//equation|//inlineequation" >
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates select="node()" />
</xsl:copy>
</xsl:for-each>
</equations>
</xsl:template>
<xsl:template match="node()">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates select="node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="processing-instruction('Eqn')" priority="10">
<!-- do nothing now -->
</xsl:template>
<xsl:template match="processing-instruction('Pub')" priority="10">
<!-- do nothing now, but want to keep -->
</xsl:template>
-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Wednesday, July 31, 2002 10:28 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] processing-instruction()
<xsl:apply-templates select="node()" />
<xsl:apply-templates select="processing-instruction('Eqn')" />
<xsl:apply-templates select="processing-instruction('Pub')" />
you don't need (or want) the second and thord lines. processing
instruction nodes are nodes so will be selected by node().
Other than that it looks OK except
<xsl:template match="node()">
and
<xsl:template match="processing-instruction('Eqn')">
have the same default priority so you want to add priority="10" to the
processing-instruction ones.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
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] processing-instruction(), David Carlisle | Thread | RE: [xsl] processing-instruction(), Joseph Kesselman |
| Re: [xsl] processing-instruction(), Jeni Tennison | Date | Re: [xsl] processing-instruction(), Joerg Heinicke |
| Month |