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

Re: invoking template for other namespace elements in

Subject: Re: invoking template for other namespace elements in mixed namespace scenario (sample XML & XSL)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 8 Sep 2004 17:09:07 +0100
xhtml schema in infopath
  The thing is the XHTML elements are not prefixed by xhtml in the data
  that is made available from InfoPath. Does that mean it lies in the null
  namespace? 

It doesn't matter whether they are prefixed or not It just matters if
they are in the xhtml namespace (if they are not,it's confusing to call
them "XHTML elements)

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-0
  8-25T18:09:45" 
  xmlns:xd="http://schemas.microsoft.com/office/infopath/2003"
  xml:lang="en-us"

If thay are the only declarations you have then unprefixed elements are
in no-namespace. (so html, b etc are not xhtml, they are just some well
formed xml that uses the same names as html)

  They may or may not be XHTML Schema Valid)

They will not be schema valid as they are not in the xhtml namespace so
they will all be unknown elements according to taht schema (not that
XSLT cares)

Your source would need
xmlns="http://www.w3.org/1999/xhtml"
to make unprefixed elements be XHTML.



  Do I need to prefix these templates with xhtml: ??

  <xsl:template match="table">
  ...
  </xsl:template>
  <xsl:template match="colgroup">

You would have to prefix them to match xhtml elements but it seems that
your source elements are in no-namespace in which case these templates
will match.

david

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.