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

Re: How to used HTML tags with XML/XSL

Subject: Re: How to used HTML tags with XML/XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Jan 2005 16:37:18 GMT
use html tags in xml
> It works correctly but it overrides other tags I use in other XSL
> files and import using <xsl:import> tag.

don't use "tag" unless you mean to refer to tags (which is almost never
in an XSLT context)

priority can't be used to override import precedence, so you don't want
to give your default template in your top level file as then it will
have highest import precedence.

Either use xsl:include instead of xsl:import (then you can use priority
to control which matches win) or put your template in a stylehseet of
its own, and import this _last_ into your top level template so it has
lower import precednce than everything else.



> when I use xmlns:h and changed * to h:*, it does not do anything at all.

As I mentioned that will only work if your input uses the xhtml
namespace forthese elements. The XML Namespace system was designed for
exactly this use, so that you can easily refer to all related elements
with a single instruction, but if all your input is in no-namespace
then obviously you can not use the xhtml namespace to refer to the
elements that you want to copy.

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.