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

Re: Error: Ambiguous

Subject: Re: Error: Ambiguous
From: Jeff Sese <jeferson.sese@xxxxxxxxxxxx>
Date: Tue, 15 Jul 2008 14:01:53 +0800
Re:  Error: Ambiguous
Hi,

Add an additional predicate to the match attribute, like:

<xsl:template match="subsection[@level='1'][@type='references']">

HTH,

-- Jeff


On 07 15, 08, at 12:35 PM, V.Ramkumar wrote:


Hi,

I got ambiguous error when match the below,

XSL:
<xsl:template
match="subsection[@level='1']><sec1><xsl:apply-templates/></sec1></ xsl:templ
ate>


<xsl:template match="subsection[@type='references']"><cits
style="numero"><xsl:apply-templates/></cits></xsl:template>

XML:
<subsection id="ss1" level="1" type="introduction">
<subsection id="ss2" level="1">
<subsection id="ss2-1" level="2">
<subsection level="1" id="ss11" type="references">

If the element subsection contains the attribute value, type="reference", I
have to match using <cite..> see above.


All other matches, is <sec1> as mentioned above.

How I need to update the above XSL code for my requirement. Please suggest.


Note: I am using saxon9 for xslt2.0 transform xml 2 xml.


Regards,
Ramkumar


Jeferson L. Sese jeferson dot sese at asiatype dot com Asiatype Inc. Suite 114 Columbia Tower Ortigas Ave., Greenhills Mandaluyong City 1550 Philippines Tel: +632-744-6262 Mobile: +63927-671-7901

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.