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

Re: Referencing content in XML and then processing in

Subject: Re: Referencing content in XML and then processing in XSLT 2.0
From: Jacobus Reyneke <jacobusreyneke@xxxxxxxxx>
Date: Tue, 23 Mar 2010 11:21:08 +0200
Re:  Referencing content in XML and then processing in
> You can use whatever you like - "domain-id" and "domain-ref" for
> example.  "id" isn't reserved by the way, so you could use that now.
> id/idrefs I've never used (as I don't see the point) but they only
> work when your xml is validated to mark certain fields as ids.  Simply
> having an attribute called "id" isn't enough for the id() function to
> return it.
Thanks again Andrew

>> Also, is there any way to make your solution work if the referencing
>> content is inside an attribute of an element
>> e.g. <company product="The editor &lt;producttype-ref
>> ref-id=&quot;manual1&quot;/&gt;">
> That looks awful.  Escaped markup is nearly always wrong.  Why not make it:
> <company>
>  <product>The editor <producttype-ref ref-id="manual1">
>  ...

It's  awful, I know, but I am trying to use XML elements only to
represent irreducible elements in my real world domain. For example, a
'name' is a property of a company, but meaningless on it's own. This
helps me to create more meaningful generic builds for all unknown
elements. You are right though, it's becoming ugly...? Time to rethink
my approach.

Thanks for the help,

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.