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

Re: using XSLT to replace @ref in XML schema

Subject: Re: using XSLT to replace @ref in XML schema
From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx>
Date: Thu, 7 Oct 2010 09:31:02 +0200
Re:  using XSLT to replace @ref in XML schema
Wolfgang,

something like

<xsl:template match="*[@ref != '']">
  <xsl:apply-templates select="document(@ref)" />
</xsl:template>

(did something similar yesterday with XSLT1, assuming @ref contains an URI)

- Michael

Am 07.10.2010 um 08:03 schrieb Wolfgang Laun:

> Inspired by an issue on another list (JAXB), I'd like to ask whether
> someone here has ever seen or heard about an XSLT replacing all the
> @ref by their respective target?
>
> AFAIK, they are just shortcuts, and such a replacement shouldn't make
> any difference.  Also, an XSLT would be a simple way of doing this -
> or am I missing something?
>
> (I'm *not* asking for a solution in code; don't waste your time, please.)
> Thanks
> -W
>
> PS: Sorry if this slightly off-topic.

--
_______________________________________________________________
Michael M|ller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lvsungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747

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.