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

Re: Linking to a 6 level tag content

Subject: Re: Linking to a 6 level tag content
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Thu, 23 Jun 2005 10:16:48 -0500
kahlil johnson
On 6/23/05, Kahlil Johnson <jzarecta@xxxxxxxxx> wrote:
> Right what about the 'foo' part? is it the identifier. For example in
> quanta I saw that a tag like <p name="text"> will represent it as
> <p:text>  is that the 'foo' means?

I think there is some slight confusion here.  foo would be the element
name, office would be the namespace it belongs too.  I'm not 100% sure
what you mean about quanta.  I'd recommend picking up "XML in a
Nutshell".  These aren't xslt concepts, but XML concepts.

If you see the tag <p name="text"> that means it's the opening tag of
the element called p in the default namespace with an attribute of

Your second is the opening tag for the element named text in the
namespace p with no attributes.

To select the first one in xslt you would want something like

<xsl:template match="p">
<!-- generate some stuff here -->

to match the second you need to have the namespace declared earlier in
the docs (an faq or tutorial should explain more.)

<xsl:template match="p:text">
<!--generate some stuff here -->

And of course you would have needed to declare the namespace in
stylesheet to do this ie:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

Perhaps you might want to skim through some more tutorials or the
specs at http://www.w3c.org

Jon Gorman

Current Thread


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.
First Name
Last Name
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.